What part of the answer you got in Revisiting the "Getting top x matches" thread do you have problems with? Maybe you can show us some more code and detail where exactly your code returns the wrong results. Also see Counting events and getting top 5 matches, which treats a problem not entirely dissimilar to your problem.
In reply to Re: Complex sorting and counting question.
by Corion
in thread Complex sorting and counting question.
by nefertiti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |