Stable Sorting Technique