Explorer order is incorrect when dealing with numerical values/prefixes

Explorer order is incorrect.
Example:
1 Hello
5 Test
10 Abc

Shows as:
1 Hello
10 Abc
5 Test

This also applies to every other list container in Studio, such as Script Performance.

Expected behavior

Example:
1 Hello
5 Test
10 Abc

Should show as:
1 Hello
5 Test
10 Abc

This should also apply to every other list container in Studio, such as Script Performance.

1 Like

Studio doesn’t organize numerical names in ascending order. Initially it looks at the first number and orders by ones, twos, threes etc. If two of them match, it proceeds to compare the second, then the third number, and so on.

1
2
22
23
3
444
445

Personally, I got used to this, although you can always make a feature request.

took me a second to get that but yeah it sees 10 as 1-0 and 2 as 2-{} so in order it goes 1,10,2 annoying yes, but i think it should just be a setting you can change

This is not a bug, and the way most software will handle similar cases.

The issue is that, while it might seem straightforward enough in the simple example case you gave, it gets complicated to define exactly how it should work. Consider the cases:

  • 2A myThing
  • 10A myThing

What about:

  • A2 myThing
  • A10 myThing

What about:

  • A 2 myThing
  • A myThing 10

What about:

  • A2 myThing
  • B10 myThing

Special casing just the very simplest case of a number right at the start with no other characters is something that could be implemented, but generally applications choose to have a consistent sorting behavior across all the cases, based on comparing the first letter, then the second letter, then the third, and so on.

1 Like