{"issue":{"title":"The autosort feature needs some","created_at":"2011-12-24T00:33:32Z","user":{"login":"pepebe","id":667315,"url":"https://api.github.com/users/pepebe","gravatar_id":"f264fc067f57cccf41b0904556d94084","avatar_url":"https://secure.gravatar.com/avatar/f264fc067f57cccf41b0904556d94084?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"milestone":null,"updated_at":"2011-12-24T00:33:32Z","labels":[],"state":"open","id":2651151,"closed_at":null,"html_url":"https://github.com/PicNet/tablefilter/issues/34","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"The autosort feature is basically a good idea but It will cause unexpected side-effects national number systems.\r\n\r\nLet me explain:\r\n\r\nGerman numbers use a colon instead of a decimal point. So instead of 1.2 we write 1,2. For Javascript this is NaN and  as a result he sort() function will treat the cell content as a simple string. The following example will explain the problem.\r\n\r\n* 1,20\r\n* 11,50\r\n* 2,00\r\n\r\nBUT, what I want to have is\r\n\r\n* 1,20\r\n* 2,00\r\n* 11,50\r\n\r\nIn my case the problem was easily solved. The basic sort order in each column was already perfect, so there was no need to change it. As a quick (and dirty) fix I removed  $values$$7$$.sort(); from your code\r\n\r\nAs a long term solution I could imagine to use sort=\"false\" in a th element to switch-off sorting for this particular column. This could also easily be extended to offer sort=\"asc\" or sort=\"desc\".\r\n\r\nRegards,\r\n\r\npepebe\r\n\r\nBTW. Thanks for sharing your code with us!","number":34,"url":"https://api.github.com/repos/PicNet/tablefilter/issues/34","comments":0,"assignee":null},"action":"opened"}