문제

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!

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top