Ascending sort

asc x     asc[x]

Where x is a:

The function is uniform. The sort is stable: it preserves order between equals.