Last modified: 2009-01-31 22:01:31 UTC
In Italy to separate thousands we use the space or the dot, and comma is the decimal separator. The algorithm used to sort numbers in the sortable table in the file http://it.wikipedia.org/w/skins-1.5/common/wikibits.js doesn't support this standard. I've updated the algorithm to solve this problem. The line 621 should be changed from if (itm.match(/^[\d.,]+\%?$/)) to if (itm.match(/^[\d., \xA0]+\%?$/)) and the ts_parseFloat function should become function ts_parseFloat(num) { if (!num) return 0; num = num.replace(/ /g, ""); num = num.replace(/\xA0/g, ""); num = num.replace(/\./g, ""); num = num.replace(/,/g, "."); num = parseFloat(num); return (isNaN(num) ? 0 : num); } This method work only for the Italian standard and non for the english one.
More info in Italian at http://it.wikipedia.org/wiki/Wikipedia:Richieste_tecniche#Sortable
This should be fixed now when wgSeparatorTransformTable is used by javascript. Please test and reopen if the problem still happens.