Re: Sorting
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18227
interpreted = N
texte = I have tried removing NEWITEMsort=1&NEWITEMsdir=as and my results still do notappear as I would like them to. Ideally I would like to have all items that haveYES in the NEWITEM field to be returned alphabetically at the top of the list, thenall other items returned alphabetically at the bottom of the list this way the newbooks are listed at the top of the page.PCS Technical Support wrote:> >I am trying to return a search in a specific order. Within the context> >of a hyperlink I would like to have all items that have the value YES> >in the NEWITEM field of a database listed at the top of the founditems,> >then all others that meet the search criteria would follow. I have> >tried the following syntax with no luck:> >> >
>HREF=/cgi-bin/items.tpl?command=search&db=../products.db&eqSTORE1datarq=golf&w> >sTYPE1datarq=Books&eqPRONAMEdatarq=[url][PRONAME][/url]&cart=[cart]&searchPRONAM> >E=[url][PRONAME][/url]&eqNEWITEMdata=YES&NEWITEMsort=1&NEWITEMsdir=as&max=150> >> >target=body>[PRONAME]>> Try removing NEWITEMsort=1&NEWITEMsdir=as>> Sounds like you want the default ranking, which means better matches are> at the top of the list. You get this ranking by *not* specifying any> particular field to sort on (because if you tell it to sort by NEWITEM, you> are forcing that to be the sort field, which undoes the nice ranking). The> default ranking puts records at the top of the list that have more field> matches, which in your case puts NEWITEM=YES above all others, followed by> records that do not have NEWITEM=YES.>> Technical Support | ==== eCommerce and Beyond ====> Pacific Coast Software | WebCatalog, WebMerchant,> 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,> San Diego, CA 92128 | Typhoon> 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I have tried removing NEWITEMsort=1&NEWITEMsdir=as and my results still do notappear as I would like them to. Ideally I would like to have all items that haveYES in the NEWITEM field to be returned alphabetically at the top of the list, thenall other items returned alphabetically at the bottom of the list this way the newbooks are listed at the top of the page.PCS Technical Support wrote:> >I am trying to return a search in a specific order. Within the context> >of a hyperlink I would like to have all items that have the value YES> >in the NEWITEM field of a database listed at the top of the founditems,> >then all others that meet the search criteria would follow. I have> >tried the following syntax with no luck:> >> >
>HREF=/cgi-bin/items.tpl?command=search&db=../products.db&eqSTORE1datarq=golf&w> >sTYPE1datarq=Books&eqPRONAMEdatarq=[url][PRONAME][/url]&cart=
[cart]&searchPRONAM> >E=
[url][PRONAME][/url]&eqNEWITEMdata=YES&NEWITEMsort=1&NEWITEMsdir=as&max=150> >> >target=body>[PRONAME]>> Try removing NEWITEMsort=1&NEWITEMsdir=as>> Sounds like you want the default ranking, which means better matches are> at the top of the list. You get this ranking by *not* specifying any> particular field to sort on (because if you tell it to sort by NEWITEM, you> are forcing that to be the sort field, which undoes the nice ranking). The> default ranking puts records at the top of the list that have more field> matches, which in your case puts NEWITEM=YES above all others, followed by> records that do not have NEWITEM=YES.>> Technical Support | ==== eCommerce and Beyond ====> Pacific Coast Software | WebCatalog, WebMerchant,> 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster,> San Diego, CA 92128 | Typhoon> 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/
jgrady@totalsports.net (Jeff Grady)
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:
Cart passing in URL.. (2004)
WebCatalog 4.0 has been released! (2000)
synching databases on multiple servers (1997)
[WebDNA] WebDNA app (2013)
4.51 Triggers (2003)
Integration with SQL (1997)
Plugin or CGI or both (1997)
InternetWeek E-Commerce article (1998)
Question (2001)
adding up in a db (1997)
WebCat2.0b15-to many nested [xx] tags (1997)
5.0 Pricing (2003)
[WebDNA] need decoded url in sendmail (2015)
Bulk Email >>>>Any ideas? (2001)
Multiple cart additions (1997)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
Bug Report, maybe (1997)
SetMIMEHeader ATTN:John P. (2001)
View order not right (1997)
Too Much Rootbeer Free Offer (1997)