Teeny optimization on sort