Sorting not right when fields have dollar signs

Sorting not right when fields have dollar signs

MeatpopsicleMeatpopsicle Posts: 2Questions: 0Answers: 0
edited January 2013 in General
Can I define a sorting callback so that I can strip out the dollar sign (and perhaps thousands-commas) when sorting by a column? I didn't see anything for this in examples or the API.

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Use the currency sorting plug-in, or one of the other plug-ins as you required: http://datatables.net/plug-ins/sorting#currency
  • MeatpopsicleMeatpopsicle Posts: 2Questions: 0Answers: 0
    That's exactly what I was looking for, thank you.
This discussion has been closed.