Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2003:
[Freeciv-Dev] (PR#6074) Numeric sorting in city report
Home

[Freeciv-Dev] (PR#6074) Numeric sorting in city report

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#6074) Numeric sorting in city report
From: "John Wheeler" <jdwheeler42@xxxxxxxxx>
Date: Mon, 8 Sep 2003 07:07:01 -0700
Reply-to: rt@xxxxxxxxxxxxxx

I think the sorting issues in PR#2607 have been resolved, but I do have
a very similiar issue: sorting appears to be text based, even for
numeric fields.  So, for example after sorting the food stock column,
you can easily have:

124/130
47/50
5/20
64/80

The simplest solution I can think of is padding short numbers with
spaces, so the output becomes:

  5/20
 47/50
 64/80
124/130

This also would have the side benefit of improving the appearance.

-- 

++JohnWheeler


[Prev in Thread] Current Thread [Next in Thread]