order nicklist caseinsensitive

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
Lorbi
Posts: 162
Joined: May 21st, 2007, 6:35 am
Contact:

order nicklist caseinsensitive

Post by Lorbi »

The Nicklist in the Lobby is sorted alphabetically which i love but for some strange reason there comes first all names with capital letters and than all the rest
it looks like:
A
A
B
G
G
H
...
a
b
c
i would much apreciate to see it orderd like:
A
A
a
B
b
c
G
G
H
-- ^ --
Nebiros
Posts: 86
Joined: July 24th, 2007, 5:20 pm
Location: Charlottesville, VA, USA

Re: order nicklist caseinsensitive

Post by Nebiros »

Sounds like a good idea, and shouldn't be hard to implement (just compare ucase(name1) to ucase(name2); if it's crucial to avoid ties, then you could write a slightly more complex comparator that uses case as a tiebreaker). If the sorting takes place client side the extra processor time won't be significant.
User avatar
Unnheulu
Posts: 738
Joined: November 25th, 2007, 4:50 pm
Location: Cymru
Contact:

Re: order nicklist caseinsensitive

Post by Unnheulu »

Or just print the usernames as lowercase?
Post Reply