simplified sort