Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sorting After SQL Select Statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm using a regular expression to count the number if times a particular word appears in a selected record, I now need to sort those selected records in order by the number of counted words found in the record. I've gotten to the point of having a list of records and the 'keyword' word count for each record. What I can't figure out now is how to sort them in, say descending, order.

Any advice? Let me know if you need to see my code.

Thanks.

 
I'm not sure exaclty how you are determining the number of keywords. But what about storing the recordset in an array using the GetRows method and then using a sort function to sort the array. if you are sorting based on numerical data, it will be easy to write the sort function to use with the array sort method. Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top