Forum:Problem with sortable table when using both numbers and text

I am having problems getting the automatic sortable table class to work when both numbers and text values are used into a single cell. http://deusex.wikia.com/wiki/Shop_(DX3) is the page with the problem. Please use a debug page when helping instead of editing my page.

How can I get the sorting to work correctly ("7.5" isnt higher than "37.5") so it sorts by number value instead of text value ?

Will it help if I use a math template ?


 * See how the sortable tables determine the sort mode. So for example adding this:


 * -style="display:none;"
 * !a
 * 9e99
 * 9e99
 * 9e99
 * 9e99
 * 9e99
 * 9e99
 * as the first row of your "Ammunition" table, should apply an appropriate sorting mode to each of the columns. See the example on my user page for reference. — Sovq 08:59, September 11, 2011 (UTC)