# PyBIS sections order in openBIS

**URL:** <https://community.openbis.ch/t/pybis-sections-order-in-openbis/656>\
**Category:** Developments\
**Created:** [23 June 2026 11:56 UTC](https://community.openbis.ch/t/pybis-sections-order-in-openbis/656 "2026-06-23T11:56:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JosePizarro3](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JosePizarro3](https://community.openbis.ch/u/JosePizarro3)\
**Post date:** [23 June 2026 11:56 UTC](https://community.openbis.ch/t/pybis-sections-order-in-openbis/656/1 "2026-06-23T11:56:43Z")

</div>

Hi!

I have been working on creating object types, assigning properties, and then updating them over time. I just realized there is a feature that is a bit annoying, especially when managing large masterdata.

To reproduce:

1. Create an object type with some properties assigned inside a section
2. Add some more properties in a different section
3. Define a new property in the section of step 1

What I get is two separate, yet identical sections:

 ![sectionsbug_1](https://europe1.discourse-cdn.com/flex013/uploads/openbis/original/1X/e4551e3c6be08aa2caf65b04d1999655e74282d7.png)

 ![sectionsbug_2](https://europe1.discourse-cdn.com/flex013/uploads/openbis/original/1X/5d621a5bc467bcf54b60fd47171fce1d0926588d.png)

I am using the syntax of `object_type.assign_property(..., section=...)`.

The issue here is visual. So I am not sure if this is an issue of pybis or the frontend, I didn’t investigate in depth.

Thanks in advance,

Jose

---

<div class="post-metadata">

**Author:** ![deiwo](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@deiwo](https://community.openbis.ch/u/deiwo)\
**Post date:** [24 June 2026 06:51 UTC](https://community.openbis.ch/t/pybis-sections-order-in-openbis/656/2 "2026-06-24T06:51:12Z")

</div>

Hello, each property also has an “ordinal” attribute which determines in what order the properties are displayed. So if you need to insert property before other you have to change the ordinal attribute of the new property to be between the ones that already exist.

So for example when you are creating new object type you can give the properties ordinals by 10, so first one would have 10, second one 20, etc. And then you can easily insert properties between them.

Or reorder them in admin UI. But I did not found a way to modify existing properties in Python other than creating custom request to the server.

I basically had to create extension of the pybis that allows you to define entity types as classes with attributes and then automatically creates/updates them according to the changes.

---

<div class="post-metadata">

**Author:** ![JosePizarro3](https://avatars.discourse-cdn.com/v4/letter/j/ad7895/32.png) [@JosePizarro3](https://community.openbis.ch/u/JosePizarro3)\
**Post date:** [3 July 2026 07:59 UTC](https://community.openbis.ch/t/pybis-sections-order-in-openbis/656/3 "2026-07-03T07:59:51Z")

</div>

Hi @deiwo ,

Perfect, that worked (with pyBIS, `assign_property()` has an `ordinal` attribute). Thanks for the quick answer.

Best,

Jose
