in reply to Re: Re: Re: How to place Search Results!!!
in thread How to place Search Results!!!

hello again, Okay,, One problem hehehe,, How can I sort it lol
HELP!!! lol
  • Comment on Re: Re: Re: Re: How to place Search Results!!!

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: How to place Search Results!!!
by sgifford (Prior) on Aug 19, 2003 at 04:40 UTC

    Do you mean how can you sort a DBM/DB database? Well, with Berkeley DB you can create a BTree database, which is sorted on some key. Otherwise, you can create a database keyed on the field you want to sort by, then extract all of the keys from the DB with keys, sort the keys, then retreive the entries in the right order based on that.

    With SQL, you'd simply use an ORDER BY clause.

    But you shouldn't have to worry about that unless you have a large number of records.