UserSpace.sort_cells#
- UserSpace.sort_cells()[source]#
Sort child cells alphabetically by name.
Cells in the sub space that are inherited from this space, except for those that are inherited from other base spaces prior to this space, are sorted as well.
Example
Suppose the space
s2below inherits froms1, and cellseeeandcccare defined ins2:>>> s1.cells {ddd, bbb, aaa} >>> s2.cells {ddd, bbb, aaa, eee, ccc} >>> s1.sort_cells() >>> s1.cells {aaa, bbb, ddd} >>> s2.cells {aaa, bbb, ddd, eee, ccc} >>> s2.sort_cells() >>> s2.cells {aaa, bbb, ddd, ccc, eee}
Added in version 0.17.0.