Hello, I am working on a price comparison table, and I have a few features that I would like to add.
I am sorting in descending order by the discount column, which is hidden (but the value is displayed in the CDO column). I initially tried to define the type for column 10 (the discount) as "natural-nohtml" using the natural sorting plug-in, but it does not sort properly. The sorting worked at one point when I defined the type of column 10 as "percent", but since I've changed the way the data is defined to be part of an object rather than a number, it no longer works. The "percent" type now sorts in descending order from "9 8 7 6 5 4 37 3 20 2 10 1", which is clearly not correct. The "Sort by our best deals" button is meant to sort by the discount in descending order, and right now it just does the non-natural sorting as seen above. How can I fix this issue with natural sorting and the percent sign?
I would like to implement natural sorting AND absolute sorting in the remaining columns, so that the default content "N/A" is always at the bottom, and the numbers are sorted naturally. Right now I am implementing natural-nohtml sorting on the columns, and "N/A" is regarded as being the greatest value, so by sorting in descending order, "N/A" is always at the top (when I want it at the bottom). How can I achieve this? Thanks in advance for the help.
Link to the site (I am based in Argentina, so the link may not work if you are not in the country):
http://precios.centraldeofertas.com.ar:4000/