h, I’ve got a simpler way than that, but it requires you use your knowledge of first class functions.
Frank: I like hearing simple! But how do first class functions fit in? That sounds complicated to me.
Jim: Not at all. It’s as easy as writing a function that knows how to compare two values, and then passing that to another function that does the real sorting for you.
How to sort using first class values?