iOS Sorting Bug?

iOS Sorting Bug?

msincamsinca Posts: 3Questions: 1Answers: 0
edited October 2013 in Bug reports
Hello. I'm running into a strange datatables sorting issue. Everything works fine on the desktop (Chrome, Safari, etc...) but when I try to view it on an IOS mobile browser, the sort is not working properly for dates. I've created a JSFiddle for it - you will see 2 different sorts if you open it up on the desktop vs an Iphone/Ipad.

http://jsfiddle.net/zSQZq/

Is this a known bug or am I doing something wrong?

Replies

  • allanallan Posts: 63,368Questions: 1Answers: 10,449 Site admin
    Not really a bug as such - more that iOS doesn't appear to support dates in that format for Date.parse() which is what DataTables uses for dates. If you want different formats, use a sorting plugin.

    Browsers will only, reliable use yyyy-mm-dd formatted dates. Those with years at the end are ambiguous so tend not to be supported. I'm planning to make the different date formats easier to use with DataTables in future.

    Allan
This discussion has been closed.