DataTable sorting problem in the Brazilian standard of numerals

0

I have a problem, I bet many have already been through this situation. We know there are several format patterns in different countries, I'm using a well-known front-end plugin when dealing with tables, which is the datatable, and it has several features, and one of them is sorting. The standard of numerals that the datatable uses understands that houses of thousand are separated by commas and decimal places by 1,000.0, the Brazilian standard is the reverse (1,000.0). So the problem is this, when inserting this information into the Brazilian standard, at the time of sorting, it sorts wrong by understands that a thousand houses are decimal and vice versa.

The image of the incorrect sort follows:

In the image he is sorting the weight incrementally, and he understands that 23,479.5 is less than 825.5 due to the positioning of the punctuation

Can anyone tell me if there is any method that I can override the datatable plugin to adapt in the right way?

    
asked by anonymous 26.05.2017 / 19:01

1 answer

0

You need to take into account the culture being used when ordering anything. In the case of DataTables here are the instructions for you to order taking into account the culture used.

link

    
30.05.2017 / 21:49