Hello, Why not you use the javascript to sort any column on client side. http://www.kryogenix.org/code/browser/sorttable/ 1. include the js file in your page 2. give your table an id 3. put your table in the class the code looks for. That's it. Sortable clientside tables! Example: http://pkfinance.info/analysis/ Hope this will help! Regards Shafiq Rehman Sr. Web Engineer http://www.phpgurru.com