Message Thread: |
View All MessagesBack to WebFX |
You should create your own custom sort type. Take a look at http://webfx.eae.net/dhtml/sortabletable/customsorttypedemo.html and the external js files. Something like: function getMyValue( s ) { return parseFloat( n ); } SortableTable.prototype.addSortType( "MySort", getMyValue ); You might also want to use the other arguments to addSortType to get more control but looking at your code it seems like parseFloat is sufficient. erik |