Beautify sort