WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Improved SID Grid Sorting, Martijn Hooimeijer, October 1, 2003
     Re:Improved SID Grid Sorting, Erik Arvidsson, October 1, 2003
     Re:Improved SID Grid Sorting, Martijn Hooimeijer, October 1, 2003

Subject: Re:Improved SID Grid Sorting From: Martijn Hooimeijer Date: October 1, 2003

Hi I copied the wrong piece of code. Here is the right code:

function compareBySid(d) {

return function (n1, n2) {

if (n1.sid == null) { return +1; }

if (n2.sid == null) { return -1; }

if (new Number(n1.sid) < new Number(n2.sid)) { return (d) ? -1 : +1; }

if (new Number(n1.sid) > new Number(n2.sid)) { return (d) ? +1 : -1; }

}

return 0;

};

}





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