stable sorting, #80