I am using the DataTables jQuery plugin. I am trying to enable sort interaction, but when sorting it sorts alphabetically and not numerically. As you can see in the enclosed picture, -4317.93 is shown after -631 and -456. How can I make DataTable sort a column numerically?

Updated answer
With the latest version of DataTables you need to set the
typeproperty of the object you provide in thecolumnDefsarray, like this:Note that there are many other methods of sorting which can be found in the documentation
Original answer
You need to add the
sTypeparameter to your column definition.For example:
More information in the DataTable documentation: http://www.datatables.net/plug-ins/sorting