I'm looking for a way to sort a String, but I would like to be able to choose the implementation of the sorting algorithm, based on the requirements of the problem I'm modeling. Is there a builtin way to do that?

I understand that Python implements sort using Timsort, but such method is not in-place. I wonder if there is a simple way to just use Quicksort instead of having to write it myself.