Search code examples
javascripthtmlhandsontable

Handsontable - numeric columns type


Why when i set column type to numeric , table can't sorting in righ way. It is doing it like that:

enter image description here

What format i need to set?

EDIT

Problem solved.

I had string in my dataset. When i parse to float now its working.


Solution

  • Problem solved.

    I had my data as string. After parse it to float/integer it's working.

    @kumar_harsh That's because your data is string and not number, so "159" comes before "59" (same as "APPLE" comes before "POCKET").