[7136] Graphs : sorting population - bug

Problems and solutions for installing or running FreeOrion, including discussion of bugs if needed before posting a bug report on GitHub. For problems building from source, post in Compile.

Moderator: Oberlus

Post Reply
Message
Author
User avatar
Herode
Space Floater
Posts: 44
Joined: Wed Jun 19, 2013 9:53 am

[7136] Graphs : sorting population - bug

#1 Post by Herode »

In the Graph screen, I set one of the tabs to : meters -> population.
Then, the graphs windows show population numbers in the column.
But if I click on the tab header to sort the graph after those population numbers, I see a list sorted like this :

9.14
9.00
8.07
8.00
...
6.18
50.0
45.2
...

Obviously, the sort function has used alphabetical sorting, not numerical sorting.

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13587
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: [7136] Graphs : sorting population - bug

#2 Post by Geoff the Medio »

Yes, that's partly why it was described as "semi-functional" in the commit log.

Edit: (I assume you mean objects list columns, not actually "graphs", which is a separate pictoral representation of data that doesn't work as you described...)

Submissions of patches that implement a sort function for the columns that handles numbers-as-text better are encouraged. Sorting by the underlying number itself instead of the text version would be difficult.

Post Reply