Closed GoogleCodeExporter closed 9 years ago
the sorting algorithm seems to be evaluating the whole string consisting of
"$actualplayers/$maxplayers", but seems to ignore or strip the slash.
Original comment by ZyanK...@gmail.com
on 27 Feb 2011 at 8:38
Where's the bug located? file/line number
Original comment by pheonix7...@gmail.com
on 27 Feb 2011 at 8:58
I fixed this issue. My patched file is attached ( ui/serverlist.py ).
Notably, lines 229 - 247. What I did is if sorting on column five (the column
displaying $actualplayers/$maxplayers, I had it use my custom sorting method
called player_sorter that strips out the string before the slash ('/') and
compares its integer value to the next item's. Tested it briefly and it seems
to work. I hope it can make its way into the main trunk! :-)
Original comment by pheonix7...@gmail.com
on 14 Apr 2011 at 1:00
Attachments:
fixed with r202
Original comment by SorcererSR@googlemail.com
on 14 May 2011 at 1:21
Issue 6 has been merged into this issue.
Original comment by SorcererSR@googlemail.com
on 3 Jun 2011 at 5:16
Original issue reported on code.google.com by
pheonix7...@gmail.com
on 4 Dec 2010 at 1:30Attachments: