Ah, I missed that predicate part. I wasn't aware sort had an overload that takes a predicate function to sort.
Thanks. That's what I need.