Here is a node that demonstrates a clever way to do the same thing using a distribution sort.
In reply to Re: Condensed rank table output by Lotus1 in thread Condensed rank table output by tlk