Started sorting implementation