Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Natural sort for names in vehicle lists - r14276 #2284

Closed
DorpsGek opened this issue Sep 9, 2008 · 2 comments
Closed

Natural sort for names in vehicle lists - r14276 #2284

DorpsGek opened this issue Sep 9, 2008 · 2 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

DorpsGek commented Sep 9, 2008

kakaopor opened the ticket and wrote:

This is a patch for the vehicle lists to use case insensitive natural sort if enabled in "Configure Patches / Vehicles".

The original sorting sorts this way:
Abc
Train 1
Train 10
Train 2
aaa

Case insensitive natural sort sorts this way:
aaa
Abc
Train 1
Train 2
Train 10

The patch variable is _patches.vehicle_list_natsort (last in the structure).

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/2284
@DorpsGek
Copy link
Member Author

DorpsGek commented Sep 9, 2008

kakaopor wrote:

Uhm, i'm sorry, the first file is not for "trunk" but "branches/0.6". Here is the patch for "trunk" (r14281).

I've modified my CompareNatsort() function a little, and have added some comments.

Sorry for the previous file.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2284#comment4724

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Implemented

In r21344


This comment was imported from FlySpray: https://bugs.openttd.org/task/2284

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant