This project is archived and is in readonly mode.

#815 ✓duplicate
mediavrog

HtmlTable.sort behaviour with string sort

Reported by mediavrog | December 23rd, 2009 @ 11:08 AM

I wanted to know if its intended behaviour, that sorting any column by string will result in the following:

Ex:

Name

a
C
B

Result after Sorting

Name

B
C
a

My expected result would be

Name

a
B
C

a fix would be to return all macthed string values in lowercase

   HtmlTable.Parsers['string'] = {
    match: null,
    convert: function() {
        return this.get('text').toLowerCase();
    }
}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages