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:
- 1003
- 1006
- 1026
- 1145
- 737
- 770
- 903
- 909
- 924
- 930
High-to-low:
- 930
- 924
- 909
- 903
- 770
- 737
- 1145
- 1026
- 1006
- 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.