Stubborn sorting - Google Chrome

Stubborn sorting - Google Chrome

romsokromsok Posts: 38Questions: 0Answers: 0
edited December 2009 in General
So, I am running into a problem that only manifests in Google Chrome - IE, FF, Opera, and Safari do not exhibit this behavior.
When I have a column that is all empty, and I click on that column's head to sort, rows shift like it is still doing some sorting, but the column itself is empty.... so.... why?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Hmm interesting one. This looks like a Chrome specific issue - see for example:

    http://code.google.com/p/v8/issues/detail?id=90
    http://code.google.com/p/v8/issues/detail?id=324
    https://bugzilla.mozilla.org/show_bug.cgi?id=224128

    What a pain... It's not a bug in Chrome (since the ECMA Script spec doesn't require a stable sort), but all the other main browsers do use a stable sort. I guess I'll have to implement a merge-sort or something in DataTables for Chrome, although I have concerns about the performance impact. I guess we'll just have to see what happens when I get a chance to do that.

    Regards,
    Allan
This discussion has been closed.