News: GOTM site feature - Sort Results

AlanH

Mac addict, php monkey
Moderator
Hall of Fame Staff
GOTM Staff
Supporter
Joined
Jan 9, 2003
Messages
29,706
Location
England
You can now sort the results listings for any game on victory condition, date, name, base score or time played as well as the default ranking order.

Sort on any sequence of these keys by selecting them in order, most significant last.

Check it out!
 
Bug reported: The rank column recalculates its values for each sort order. I'll fix that when I get home.

[Update] Resolved
 
I am the winner of GOTM5 when you sort on the correct parameters. ;)

http://gotm.civfanatics.net/results/index.php?month=40005&sortorder[0]=name%3DCHAR%2868%2C97%2C118%2C101%2C77%2C99%2C87%29+desc%2Cscore+desc
 
AlanH: I have a suggestion. Instead of having a drop-down menu, set the title of each column to be clickable and then results are sorted by that column. It is more user frendly. And so you can have both asc and desc sorting easily implemented.
Just a though, to make life another bit more comfortable... :)
And thanks for the great work of course.

PS (edit). Just to give an illustration of what I am talking about, there is a site I have programmed with sorting principles just as I imagine them to be more convinient. http://dzivoklis.lv/en/view/?a=1&t=3 (Its not related to civ in any way. Its about real estate in fact).
 
Thanks for reminding me to validate incoming GET parameters, Dave, I'd forgotten for a minute there :p
 
karlis said:
AlanH: I have a suggestion. Instead of having a drop-down menu, set the title of each column to be clickable and then results are sorted by that column. It is more user frendly. And so you can have both asc and desc sorting easily implemented.
Just a though, to make life another bit more comfortable... :)
And thanks for the great work of course.
Yeah! I saw a request in another thread and was just reusing an old design pattern I had lying around to get something done fast. your suggestion matches behaviour in a lot of table layouts. The advantage of my system is that you can choose multiple sort keys, and you can see your selected order, as it is in the menu.

I'll play with a column header sort option if I get some more time.
 
ainwood said:
Hey - very cool. :)

Can you make it so that hitting the "go" button again toggles the sort order from ascending to descending?

Hmm! The Go button shouldn't have been there! It was a bug, and is fixed.

It's only required if your browser dowsn't support javascript, as the menus trigger the refresh without it otherwise.

If I gave you a "reverse order" button, what would it do? Just reverse the order of the topmost sort key? Should that then be remembered if you select another top key?
 
Back
Top Bottom