create a page where you can sort by different fields...

Hello Experts!

How do you make a page where you can sort by different fields....?

Kinda like ebay's site where you can sort by "price low to high" and all that....

Who is Participating?
BatalfConnect With a Mentor Commented:
This is usually done on the server by ordering the data from the query based on the column you clicked on. You click on a column header. The server picks up which column you clicked on and query the database again but with a different "order by" clause. Then the server outputs the data in the new order.

It could also be done by Javascript as shown in this article:

Not sure how browser compatible it is.
neomage23Author Commented:
Thanks man. that help
All Courses

From novice to tech pro — start learning today.