Actually I have a table in which I have fetched the records from the database, and am intending to do the sorting for the records.
"My intention is to have a small button near the headers of the table and whenever I click that button then the records should get sorted".
I am providing a piece of Perl code here which can make the things more clear of what am I up to:
print "<th >$sth->{NAME}->[0] <input type=\"submit\" name=\"Id\"
value=\"v\"></th>";
Here the button would look like "v" and whenever I click that button then it should sort and the button would look like "^".
Can I make such an interface and sort the records?