react-bootstrap-table icon indicating copy to clipboard operation
react-bootstrap-table copied to clipboard

sort formated data

Open biggu0 opened this issue 10 years ago • 2 comments

dear AllenFang: when I use numeral format table's data,the sort value will be chaos.seems like it deal with a string, '210,00.00' will behid '1,111,00.00'

biggu0 avatar Jun 08 '16 08:06 biggu0

@biggu0, exactly, if your field value is string, it'll be handled with string, because react-bootstrap-table didn't support field type, so this issue cant be solved, but you can use sortFunc to customize your sorting logic so that you can convert the 210,00.00 to 21000.

I'll close this issue because this wont fix, but feel free to discuss with me :) thanks.

AllenFang avatar Jun 09 '16 07:06 AllenFang

BTW, you can give formatExtraData a try, there's a example, I thinks it's also another solution.

AllenFang avatar Jun 09 '16 07:06 AllenFang