Hi all,
I have a search page, the keywords form a selection routine to bring records from the DB which contain any of the keywords. Each record is then analysed to determine how many of the keywords it has in it and is given a higher rating accordingly. The records are concatenated into a string and then they are put into an array. So I have an array, that array is filled with a strings which are themselves concatenations of:
RecordID&Subject&Text&Date&Rating
The rating is a three digit rating which is assigned to the string based on the amount of matching words within the text. A example array string would be:
2&TestSubject&Hi, this a test...&31/02/2003&050
What I want to do is, having made my array from analysis of recordsets, resort the array based on the rating (highest to lowest) for output onto my web page.
Any ideas would be greatly appreciated.. Also any other ways to do the whole thing would be quite good too, emphasis on simple though.
Thanks in advance
Simm
I have a search page, the keywords form a selection routine to bring records from the DB which contain any of the keywords. Each record is then analysed to determine how many of the keywords it has in it and is given a higher rating accordingly. The records are concatenated into a string and then they are put into an array. So I have an array, that array is filled with a strings which are themselves concatenations of:
RecordID&Subject&Text&Date&Rating
The rating is a three digit rating which is assigned to the string based on the amount of matching words within the text. A example array string would be:
2&TestSubject&Hi, this a test...&31/02/2003&050
What I want to do is, having made my array from analysis of recordsets, resort the array based on the rating (highest to lowest) for output onto my web page.
Any ideas would be greatly appreciated.. Also any other ways to do the whole thing would be quite good too, emphasis on simple though.
Thanks in advance
Simm