Fix bug when calling radix_sort() with partial ranges
Use radix_sort() for stable_sort() when possible