Hey how ya's all doing? good? good, anywho, I've got a bit of a problem sorting an array and I was hoping someone out there might be able to help :}
Basically, sorting with mysql has made me lazy, and now I need to sort an array without mysql's funkeh sort stuff I'm stumped :/
What it is, is I have a site where someone can search a sort of FAQ database for answers to a question they might have, and then it stores the results in a 2d array, like this..
$resultarray[0][0]= the id field of the database entry which has matches to their keywords &
$resultarray[0][1]= the number of matches of their keywords in that database entry
Now that all works, but what I want then is to sort that array by the number of matches (the second part of the array) so the highest number of matches will be at the top of the list.
I've scoured every array tutorial I can find and tried to make sense of the php manual sort functions but I can't get it to work =[ Anyone got any ideas? I got a feeling I'm just missing something real simple but I can't work out what