finishing sort resolving