Galaxy Legion Forum http://galaxylegion.com/forum/ |
|
Battle Tab "Sort By Rank" Sorts As Text Instead Of Number http://galaxylegion.com/forum/viewtopic.php?f=5&t=43319 |
Page 1 of 1 |
Author: | Raigonne [ Tue Aug 11, 2015 12:13 pm ] |
Post subject: | Battle Tab "Sort By Rank" Sorts As Text Instead Of Number |
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:
High-to-low:
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. |
Author: | Darth Flagitious [ Sat Aug 15, 2015 1:35 am ] |
Post subject: | Re: Battle Tab "Sort By Rank" Sorts As Text Instead Of Number |
Just kill everyone, and let God do the sorting. |
Author: | Redneck_King_of_Funk [ Sat Aug 15, 2015 1:43 am ] |
Post subject: | Re: Battle Tab "Sort By Rank" Sorts As Text Instead Of Number |
Darth Flagitious wrote: Just kill everyone, and let God do the sorting. +1 |
Author: | juiceman [ Sat Aug 15, 2015 2:29 am ] |
Post subject: | Re: Battle Tab "Sort By Rank" Sorts As Text Instead Of Number |
i sort by halced and people i am killing |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |