move sort out of ctrl