||View All MessagesBack to WebFX|
Okay, great. Sounds pretty easy... will have a look at it.
Thanks for the reply, Erik!
From: Erik Arvidsson
Sent: July 19, 2004
Subject: Re:How to exclude characters when sorting columns?
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.
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.