mrocklin / ball

Working notes for Fantasy Baseball
0 stars 1 forks source link

Columns do not sort correctly #35

Open mrocklin opened 11 years ago

mrocklin commented 11 years ago

They're being sorted as strings so 2 > 100

There is a "numeric" sorting mechanism that one can apply to columns but this fails because the entries are strings containing HTML e.g. <div id=...>2</div>

DataTables supports custom sorting http://www.datatables.net/development/sorting