Re: oddball sorting problem

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 55045
interpreted = N
texte = If you have field names of date1 and date2, then you don't need to use group1field. That's only if you want to use separate search parameters on the same field. Regards, Tim -- Tim Robinson IDFK Web Developments tim@idfk.com.au 114a/40 Yeo Street Neutral Bay 2089 Australia Phone +612 9908 2134 Fax +612 9908 4837 > From: Terry Wilson > Reply-To: (WebDNA Talk) > Date: Wed, 17 Dec 2003 23:22:00 -0500 > To: (WebDNA Talk) > Subject: oddball sorting problem > > I have this: > > [search > ...group1field=date1+date2&group1type=date&gegroup1datarq=[date]&date1type=dat > e&date1sort=1] > > I originally had this: > > [search ...date1type=date&gedate1datarq=[date]&date1sort=1] > > The original search returned the records in the ascending order that > I expected. When I altered it to include a second date (some events > might have two dates), now it sorts screwy. Events with two dates > float to the top (sorted correctly if both dates meet the ge > criterion), followed by double dates where one date meets the > requirement, and finally, the single date items (again, sorted > correctly). What is causing the two-date items to precede the others? > > Maybe a clarification of what exactly is happening with grouped > fields will help. > > I have it roughed out at http://terryfic.com/~yardsales/ > > Feel free to play with it. It will be up for a few more days as I develop it. > > Thanks, > Terry > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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: oddball sorting problem ( Terry Wilson 2003)
  2. Re: oddball sorting problem [feature request] ( Donovan Brooke 2003)
  3. Re: oddball sorting problem ( Brian Fries 2003)
  4. Re: oddball sorting problem ( Terry Wilson 2003)
  5. Re: oddball sorting problem ( Donovan Brooke 2003)
  6. oddball sorting problem -- almost okay now ( Terry Wilson 2003)
  7. Re: oddball sorting problem ( Tim Robinson 2003)
  8. Re: oddball sorting problem ( "WebDna @" 2003)
  9. oddball sorting problem ( Terry Wilson 2003)
If you have field names of date1 and date2, then you don't need to use group1field. That's only if you want to use separate search parameters on the same field. Regards, Tim -- Tim Robinson IDFK Web Developments tim@idfk.com.au 114a/40 Yeo Street Neutral Bay 2089 Australia Phone +612 9908 2134 Fax +612 9908 4837 > From: Terry Wilson > Reply-To: (WebDNA Talk) > Date: Wed, 17 Dec 2003 23:22:00 -0500 > To: (WebDNA Talk) > Subject: oddball sorting problem > > I have this: > > [search > ...group1field=date1+date2&group1type=date&gegroup1datarq=[date]&date1type=dat > e&date1sort=1] > > I originally had this: > > [search ...date1type=date&gedate1datarq=[date]&date1sort=1] > > The original search returned the records in the ascending order that > I expected. When I altered it to include a second date (some events > might have two dates), now it sorts screwy. Events with two dates > float to the top (sorted correctly if both dates meet the ge > criterion), followed by double dates where one date meets the > requirement, and finally, the single date items (again, sorted > correctly). What is causing the two-date items to precede the others? > > Maybe a clarification of what exactly is happening with grouped > fields will help. > > I have it roughed out at http://terryfic.com/~yardsales/ > > Feel free to play with it. It will be up for a few more days as I develop it. > > Thanks, > Terry > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ Tim Robinson

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) 3.0 [TEXT] variables (1998) 2nd try: possible to weight results of grouped fields search? (1998) This is a Test, sorry (1999) Thanks Grant (1997) [applescript] (1999) RAM variables (1997) Banners (1997) General WebCatalog Questions (1997) Authorizenet and expiration dates (2002) Shell traceroute (2001) WebCat2 - [format thousands] (1997) Re[2]: Formatting ModDate (2000) New command suggestion (was Modifying databasesmanually) (1997) [date] problem with %d%m%Y (1998) WCS Newbie question (1997) Orderfile Info is Dissappearing (1998) normal users.db calls ... (1998) [showif]/[hideif] question (1997) Generating unique SKU from [cart] - Still Stumped... (1997)