Re: Sorting problems

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 32943
interpreted = N
texte = >When I do a search such and require the results to show sorted by price: > >[search >db=Entermerch.db&eqmajorCategorydatarq=[url][majorCategory][/url]&PRICEsort=1&PRICEsdir=as&max=12&AllHit=1&startat=[url][startat][/url]] > >[founditems] > >1,140 116 127 1,274 1,658 1,659 195 250 > >[/founditems] > >It seems to take only the first 3 digits into consideration? Okay, first of all you're not telling webcat to sort numerically, because your search context doesn't have a PRICEtype=num parameter in it. Please read the HTML docs under Searching to learn how to define a field type with parameters like this ...Also, your PRICE values have commas in them, so they are not properly formatted as numbers -- which means webcat won't be able to sort them numerically even after you add the above parameter.The *only* valid characters in a number are digits and a dot -- that's all. Therefore, you must add the parameter above as well as get rid of the commas, before you will be able to sort numerically and get the results you want ... :) ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Sorting Problems ( Toby Cox 2004)
  2. Re: Sorting Problems ( Brian Fries 2004)
  3. Re: Sorting Problems ( Glenn Busbin 2004)
  4. Re: Sorting Problems ( Pat Holliday 2004)
  5. Re: Sorting Problems ( Glenn Busbin 2004)
  6. Re: Sorting Problems ( Brian Fries 2004)
  7. Re: Sorting Problems ( Joe D'Andrea 2004)
  8. Re: Sorting Problems ( Gary Krockover 2004)
  9. Sorting Problems ( Pat Holliday 2004)
  10. Re: Sorting problems (Kenneth Grome 2000)
  11. Sorting problems (Marc 2000)
>When I do a search such and require the results to show sorted by price: > >[search >db=Entermerch.db&eqmajorCategorydatarq=[url][majorCategory][/url]&PRICEsort=1&PRICEsdir=as&max=12&AllHit=1&startat=[url][startat][/url]] > >[founditems] > >1,140 116 127 1,274 1,658 1,659 195 250 > >[/founditems] > >It seems to take only the first 3 digits into consideration? Okay, first of all you're not telling webcat to sort numerically, because your search context doesn't have a PRICEtype=num parameter in it. Please read the HTML docs under Searching to learn how to define a field type with parameters like this ...Also, your PRICE values have commas in them, so they are not properly formatted as numbers -- which means webcat won't be able to sort them numerically even after you add the above parameter.The *only* valid characters in a number are digits and a dot -- that's all. Therefore, you must add the parameter above as well as get rid of the commas, before you will be able to sort numerically and get the results you want ... :) ================================ Kenneth Grome, WebDNA Consultant 808-737-6499 http://webdna.net ================================------------------------------------------------------------- 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://search.smithmicro.com/ Kenneth Grome

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 [FoundItems] Problem - AGAIN - (1997) form data submission gets truncated (1997) Alternating BGColors in Table Rows (1998) Help name our technology! (1997) Some Questions (1997) RE: WebCat and image maps (1997) [math] show=F exists? (1997) [WebDNA] sum in a search (2009) [WebDNA] No more SQL in 7.1? (2012) Location of Browser Info.txt file (1997) Need relative path explanation (1997) More than one db with the same namn (was: WC2f3) (1997) printing twice? and fix (1997) MOD_REWRITE Search Engine Friendly URLs (2008) Resume Catalog ? (1997) UPDATE PROBLEM (1997) Bug? (1997) Web Developer Product Awards (1997) sort without the or a (1998) [OT] Missing access_log (2003)