Talk:Save the Children State of the World's Mothers report

From Wikipedia, the free encyclopedia
Jump to: navigation, search

Table sorting issues[edit]

Just a note, it's probably worth spending the time using {{sort}} to fix the data table. Currently you have quirky results like 980 and 97 higher than 9600 (when trying to find the safest country) because the Mediawiki software isn't good at sorting numbers of different lengths. I would just force the sorting with 0s to make them all of the length of the longest term. So, for example, 97 becomes {{sort|00097|97}}. I ran into similar problems with List of Major League Baseball home run champions and List of Major League Baseball runs batted in champions. Staxringold talkcontribs 09:39, 7 May 2010 (UTC)

I should have read the manual more carefully, though I think it could use some revision for clarity. (which I've since tried to do) I see now that whenever a cell containing any non-numeric text at all ends up on top after any previous sort, it forces an alphabetic sorting mode. My approach now is to have two rows at bottom and top with very high and very low sortkeys, so that hopefully no amount of sorting can put a cell at the top that will force alphabetic mode. Mike Serfas (talk) 16:24, 8 May 2010 (UTC)