Optimizes MySQL ordering by reducing MySQL file sorting