View unanswered posts | View active topics It is currently Wed Apr 24, 2024 2:58 pm



Reply to topic  [ 4 posts ] 
 Battle Tab "Sort By Rank" Sorts As Text Instead Of Number 
Author Message

Joined: Fri Oct 26, 2012 1:02 pm
Posts: 123
Reply with quote
When you sort by rank on the Battle tab, the rank is treated as text instead of as a number. This is not an issue when everyone's rank is the same number of digits (e.g., 3-digits, 4-digits). But it is an issue when you get a mix of ranks having a different number of digits in them (e.g., 3-digit and 4-digit). When you sort from low to high, the 4-digit ranks are sorted and appear first and the 3-digit ranks are sorted and appear last. When you sort from high to low, you get the 3-digit ranks first and the 4-digit ranks last.

As an example, the sort would look something like this:
Low-to-high:
  1. 1003
  2. 1006
  3. 1026
  4. 1145
  5. 737
  6. 770
  7. 903
  8. 909
  9. 924
  10. 930

High-to-low:
  1. 930
  2. 924
  3. 909
  4. 903
  5. 770
  6. 737
  7. 1145
  8. 1026
  9. 1006
  10. 1003

This is not the behavior that one would expect for doing a number sort. It happens because when you sort as text, the first character is compared regardless of the number it represents (hundreds for 3-digit, thousands for 4-digit). Whereas when sorting as a number, the thousands are compared to thousands, hundreds to hundreds, and so on, giving you the order you'd expect.

While not a problem yet, the same will also occur once players exceed rank 10,000 and there is a mix of 4-digit and 5-digit ranks (I know, still a while off, but some are already half-way there).

When you sort by rank on the Legion tab, the rank is treated as a number and sorts correctly. The Battle tab should sort the rank as a number as well.


Tue Aug 11, 2015 12:13 pm
Profile
User avatar

Joined: Thu Nov 25, 2010 6:49 pm
Posts: 8964
Reply with quote
Just kill everyone, and let God do the sorting.

_________________
Ranks 400+ Join us in exploring..
ImageImage

[20:40] Wredz: just hacked a massive extremely rich minting planet from someone.. thats the best planet i ever hacked
[20:43] DarthFlagitious: is it spearmint or peppermint?


Sat Aug 15, 2015 1:35 am
Profile WWW
User avatar

Joined: Thu Feb 20, 2014 9:22 pm
Posts: 388
Reply with quote
Darth Flagitious wrote:
Just kill everyone, and let God do the sorting.



+1

_________________
We the Renegades of this Atomic Age


Sat Aug 15, 2015 1:43 am
Profile

Joined: Sun Aug 03, 2014 6:17 pm
Posts: 2224
Reply with quote
i sort by halced and people i am killing

_________________
Image
Image
Signature created by Necromancer

Spy status_ #1 Cloak master in galaxy
Moooooooooooooooooooo!


Sat Aug 15, 2015 2:29 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.