• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Sort by name issue

I_Maki_I

Trainer
Describe the bug you experienced here.
When I set "sortmode: name" in tm's, TM 128 is under TM 12.

What I expected to happen:
TM 128 should be at the end of my Tm's

2014-07-28_16.07.12.png
 

Tornado9797

Content Developer
P3D Developer
Global Moderator
Describe the bug you experienced here.
When I set "sortmode: name" in tm's, TM 128 is under TM 12.

What I expected to happen:
TM 128 should be at the end of my Tm's

View attachment 5748
This is not exactly a bug. In reality, the game sees two "1"s side by side, so it puts them together (even though it is a higher number).
 

nilllzz

Original Developer
Administrator
P3D Developer
This is not exactly a bug. In reality, the game sees two "1"s side by side, so it puts them together (even though it is a higher number).
Not exactly...
It's doing a text comparison, not an integer comparison.
That means, it sorts the entire string "TM x".
And this means, that it sorts every character in the string separately.
For this example:
2 is smaller than 3, so it puts all items that start with "TM 12" before all items that start with "TM 13".
 
Top