Improving order of maps on the control panel.
On http://minecraftonline.com/cgi-bin/controlpanel?maps maps are shown in order of id. However this order goes: 0 1 10 100 1000 1001 1002 1003... ...1238 1239 124 1240 1241... Instead of: 1 2 3 4 5 6 7...
Comments (5)
-
reporter -
This is not true;
sort -g
would produce precisely the same output. Both produce output correctly sorted by numerical order. However, the-k1.20
in use in the source is responsible for the limited sorting; this seems to have been intentional at some point, I've no idea if it's still relevant. We also have a lot of maps, so it might not be useful to sort them numerically anymore. -
reporter It could be useful to sort them numerically so that maps made around the same time are near eachother.
-
Then remove the
-k1.20
if you don't think it serves any useful purpose -
reporter - edited description
- changed status to resolved
- Log in to comment
This could be done by changing the
sort -n
to asort -g
, but may be much slower.