cyberbotics / webots-cloud

Apache License 2.0
2 stars 2 forks source link

PROTO subcategories order changes #144

Closed stefaniapedrazzi closed 1 year ago

stefaniapedrazzi commented 1 year ago

For some of the PROTO categories, the order of the subcategories changes after clicking multiple times on the selected category icon.

I can reproduce it for Furniture, Building and Exterior: Screenshot from 2023-07-05 09-24-22

Screenshot from 2023-07-05 09-24-27

BenjaminDeleze commented 1 year ago

I just checked and it is not really a bug. The subcategories are order by the number of elements they contains (except for subcategories like others that are always at the end). The subcategories that are switching positions are subcategories that have the same amount of protos in them.

stefaniapedrazzi commented 1 year ago

It is strange that the categories changes. If categories have the same amount of PROTOs, then some other fixed order should be used, like the alphabetocal order.