Follow-up Comment #2, patch #1165 (project wesnoth):
Note that this function can be applied to both the level and exp columns.
The break in UI design is justified in this case. A plain numeric sort for
level is not as useful as what this sort does, because this will always list
the units closest to leveling first with the same level instead of listing
all the units with the same level in an arbitrary order.
The exp sort is somewhat less useful and still not 100% intuitive for the end
user. It sorts by exp and then level.
The two sorts are merged into one function because the only difference is the
sort order. You can split them apart but you're trading a small break in the
UI code for 20-30 lines of code duplication.
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?1165>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs