Check out What I Talk About When I Talk About Sorting: Untangling Array#sort by by. Here is an excerpt:
Sorting things is a fundamental part of our daily lives—it’s something we do everyday, following all kinds of criteria to make our lives easier. Whether you’re looking for a person’s phone number, the location of your favorite book, or even matching up your socks, sorting allows us to find…
The full article is available here.