Hi Bill, Jess Parker had this in a sortable table which used to be at:
http://www.wildernessagency.com/~jparker/tango-examples/ (not returning anything right now) I'm sure someone has it - it uses <@sort> with the column and direction passed through as args. I also see it in the Witango Mail Client so you can sort mail messages.... --- Bill Conlon <[EMAIL PROTECTED]> wrote: > I'm looking for a snippet that will change the order > of a list. Before > I write it, I might as well ask if someone has done > this already. > > Consider a table > id -- unsigned int, autoincrement > order -- unsigned int > name -- char > > I display the table > ID ORDER NAME <UP> <DOWN> > 1 1 first up1 dn1 > 2 2 second up2 dn2 > 3 3 third up3 dn3 > > The <UP> and <DOWN> columns contain links to move a > row up or down, > something like: > ?_function=up&_uid1=<@COLUMN "id"> > ?_function=dn&_uid1=<@COLUMN "id"> > > Say I hit the up2 link, I then get the table in a > new sort order: > > ID ORDER NAME <UP> <DOWN> > 1 1 first up1 dn1 > 3 2 third up3 dn3 > 2 3 second up2 dn2 > > Of course there might be <TOP> and <BOTTOM> links > too. > > thx. > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to > http://www.witango.com/developer/maillist.taf > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
