I've built a site for a local bike store I visit frequently, I'm currently hosting a non-live version at http://mattgreenfield.co.uk/bikestore/store.html.
I've just installed the brilliant list.js (http://listjs.com) to enable the store page to sort and filter (the owner does not wish to sell products online but to get customers phoning up and visiting the brick and mortar store).
It seems to work pretty well but the sort by price button doesn't seem to be sorting by price, the values should be sorting high to low but are not. Would this be anything to do with it only sorting by the first digit of the number possibly? £4000 seems to be sorted as less that £479 for example - the first digit is the same but 7 is more than 0 (second digit).
I may have missed something simple as the original example from where I copied the code was sorted by year, years only ever have 4 digits so this problem would not occur.
£3,799.99
is not really a number. Although we humans can easily disregard the comma and pound sign computers are not as smart. The solutions is to replace list.js`s internal values with a sortable floating point number.