stable sorting algorithm

sorting algorithm that maintains the relative order of elements with equal values