Sorting... stumped.

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 63778
interpreted = N
texte = Need to sort results using a field that contains only the following 3 values in each record T, Q & N. Client wants sort order as follows: If T is chosen, then sort TQN If Q is chosen then sort QTN If N is chosen then sort NTQ No prob if T or N is chosen. I just toggle the sdir=as or sdir=de in the search string as appropriate and it works alphabetically. But how do I handle it if Q is chosen? Sample code: ------------------ [!]-- [the-topic] is fed to this code from a different page. Values are either T, Q or N --[/!] [text show=f]searchMethod=eqShortCategoryDataRq=[url][p][/url]&neSkuData=[blank]&sortKeyType=num&productTypeSdir=[showif [the_topic]=T]de[/showif][showif [the_topic]=N]as[/showif]&productTypeSort=1&sortKeySort=2&catIDsumm=T&allReqd=T[/text] How to handle if [the_topic]=Q ???? -Dan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Sorting... stumped. ( "Dan Strong" 2006)
  2. Re: Sorting... stumped. ( Frank Nordberg 2006)
  3. Re: Sorting... stumped. ( "Dan Strong" 2006)
  4. Re: Sorting... stumped. ( Alex McCombie 2006)
  5. Re: Sorting... stumped. ( "Dan Strong" 2006)
  6. Re: Sorting... stumped. ( Alex McCombie 2006)
  7. Re: Sorting... stumped. ( "Dan Strong" 2006)
  8. Re: Sorting... stumped. ( "Dan Strong" 2006)
  9. Re: Sorting... stumped. ( "Dan Strong" 2006)
  10. Sorting... stumped. ( "Dan Strong" 2006)
Need to sort results using a field that contains only the following 3 values in each record T, Q & N. Client wants sort order as follows: If T is chosen, then sort TQN If Q is chosen then sort QTN If N is chosen then sort NTQ No prob if T or N is chosen. I just toggle the sdir=as or sdir=de in the search string as appropriate and it works alphabetically. But how do I handle it if Q is chosen? Sample code: ------------------ [!]-- [the-topic] is fed to this code from a different page. Values are either T, Q or N --[/!] [text show=f]searchMethod=eqShortCategoryDataRq=[url][p][/url]&neSkuData=[blank]&sortKeyType=num&productTypeSdir=[showif [the_topic]=T]de[/showif][showif [the_topic]=N]as[/showif]&productTypeSort=1&sortKeySort=2&catIDsumm=T&allReqd=T[/text] How to handle if [the_topic]=Q ???? -Dan ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Dan Strong"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCatalog for Postcards ? (1997) [OT] Server check please (2006) Search Via a drop down menu? (2000) where to put code (1998) Multiple Currencies (2002) Moment of Thanks (1997) Major bug report on rootbeer (1997) Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) WebCat2.0 [format thousands .0f] no go (1997) Storebuilder Problems...Looking for last minute heroic (2004) Authorizenet answers and more questions (2002) Javascript and Search Results (1998) WebCatalog 2.0.1 NT beta 1 released (1997) WebCatalog on Linux (2000) WebCatb15 Mac CGI -- [purchase] (1997) Erotic Sites (1997) Sort Order on a page search (1997) WebCat2 beta 11 - new prefs ... (1997) MacActivity and PCS (1997) Separate server for jpg/gif files (1998)