[英]Handsontable - numeric columns type
Why when i set column type to numeric
, table can't sorting in righ way. 为什么当我将列类型设置为
numeric
,表无法以严格的方式排序。 It is doing it like that: 它是这样做的:
What format i need to set? 我需要设置什么格式?
EDIT 编辑
Problem solved. 问题解决了。
I had string in my dataset. 我的数据集中有字符串。 When i parse to float now its working.
当我解析为浮动现在它的工作。
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").
@kumar_harsh这是因为您的数据是字符串而不是数字,所以“ 159”在“ 59”之前(与“ APPLE”在“ POCKET”之前一样)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.