2

I am using footable.js plugin to sort a table in my MVC application. On clicking the row header for a column containing integers values they are being sorted as follows:

81, 811, 776, 700, 70

Is there anything I can do to this library that would enable the sorting of integer columns to be sorted on value:

811,776,700,81, 70

Any help would be greatly appreciated!

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Jay
  • 3,012
  • 14
  • 48
  • 99
  • data-type="numeric" added to column sorted this – Jay Sep 05 '13 at 21:03
  • Add this as an answer, then in a couple of days accept your answer. It'd help other people with the same problem if they see that your question was answered, even if it was by yourself. – Adrian Wragg Sep 05 '13 at 21:29

2 Answers2

6

data-type="numeric" added to column sorted this

Jay
  • 3,012
  • 14
  • 48
  • 99
1

In newer releases, data-type="number" will do it.

Code
  • 99
  • 1
  • 4