My sort method from scratch.