Seems like this is almost always the sorting function we want.