updated supersort to accept keys