For an even quicker method - save your initial results in an array - 
then provide links with sort arguments so that the user, by selecting 
the links, re-sorts the array and redisplays the page without a 
return to the database.

e.g.

If @@myarray[1,1] is MT
      search and bring back data to populate myarray
      Sort by initial value
Within the webpage itself have

@ifequal "<@arg sort>" "author"><a 
href="<@cgi><@appfile>?sort=pubyear&<@userreferenceargument>">Sort by 
publication year?</a><@sort array="myarray" 
cols="author,pubyear"><@elseifequal "<@arg sort>" "pubyear"><a 
href="<@cgi><@appfile>?sort=author&<@userreferenceargument>">Sort by 
author?</a><@sort array="myarray" cols="pubyear,author"></@if>

The only thing better is an XML sort, but in our situation (diversity 
of browsers, versions, etc), we don't have this luxury.

>You can also build an argument in the search form like:
><INPUT TYPE=Radio NAME="vSort" VALUE="col1 ASC, col2 DESC, col3 ASC">
>
>Then in the search action, right click on order by columns box, insert
>metatag, select argument type and your done.
>
>Chuck Lockwood
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>LockData Technologies, Inc.
>309 Main Avenue, Hawley, Pa 18428
>Phone: 570-226-7340 ~ Fax: 570-226-7341
>Email: [EMAIL PROTECTED] ~ http://www.lockdata.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of rich Jasinski
>Sent: Tuesday, July 09, 2002 5:04 PM
>To: Multiple recipients of list witango-talk
>Subject: Witango-Talk: Dynamic sorting
>
>
>I am build a taf that hopefully will allow the user to sort the information
>by different columns. Is there a way to do this with one taf or will I have
>to have a taf for each sort column?
>
>rich
>
>________________________________________________________________________
>TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body
>
>
>________________________________________________________________________
>TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
>                 with unsubscribe witango-talk in the message body

________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to