Edit sorting