WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Custom string sort (non-english alphabet) for sortable table, Romano, July 6, 2005
     Re:Custom string sort (non-english alphabet) for sortable table, Erik Arvidsson, July 16, 2005

Subject: Re:Custom string sort (non-english alphabet) for sortable table From: Erik Arvidsson Date: July 16, 2005
Something like:

function siCompare(s1, s2) {
...
};

SortableTable.prototype.addSortType("SiAlphCaseInsensitiveString", null, siCompare);

The siCompare function should return a number less than zero if s1 comes before s2, zero if they are equal and greater than zero if s2 should come after s1.

erik



Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX