Fixed sort signature bug.

`sort`, `stable_sort`, and `fast_sort` were taking arguments by value
rather than by reference. This was a copy-paste bug :(