Handling sort versus move