Continued sorting implementation.