This may be a bit much to ask here, but what I want are some simple directions or examples of a PHP sorting script, so that I can work it out myself.
I have a webshop where I want my customers to sort their products, bases on some variables such as the price, or color of the product.
I'm building a menu on the left of my site with checkboxes where people can check the variable they want to sort with. When they check a box, the page container must refresh and only the products that match the requirements must be visible. See http://amzn.to/ryeIjF for an example of what I want to achieve.
Note that all the properties of my products are stored in a mysql database.