I have a Pick List of door sizes, which are Integer values. Here's what that list looks like in Pick List Manager, sorted ascending and descending...
The sort doesn't make sense, whether it's sorted alphabetically or numerically.
I posted this because MicroStation help tells us: In the Item Types dialog you will now see Number and Integer options along with other options in the Property Definition pane. When you select Type as Number in the Property Definition pane, pick lists with numbers as values will be displayed in the Pick List drop-down menu. When you select Integer, pick lists with integer values will be displayed in the Pick List drop-down.
It looks like someone forgot to write the sort code for numeric lists.
Definitely a bug. I recreated the issue using your Pick List values and got the same results. Then I added a zero in front of the 3 digit numbers and it sorted OK.
Karl Todt said:I added a zero in front of the 3 digit numbers and it sorted OK
Thanks for corroborating! I'm guessing that's an alphabetic sort rather than a numeric sort. Numerically, a leading zero is meaningless.
Regards, Jon Summers LA Solutions
Jon Summers said:I'm guessing that's an alphabetic sort rather than a numeric sort.
Such assumption makes sense and probably right: EC data are persisted as formatted string internally (and stored as XML), so if somebody implemented it as a plain "received values sorting" code, the results will be incorrect.
Regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point