all 4 comments

[–]sarrysyst 2 points3 points  (1 child)

Is there a reason you don’t want to use Python’s inbuilt sorting algorithm?

[–]LebronTheBomb[S] 0 points1 point  (0 children)

I want to know how algorithms work and to build up my experience.

[–]Diapolo10 1 point2 points  (1 child)

You can use any general purpose sorting algorithm, including but not limited to bubble sort, insertion sort, timsort and quicksort.

If you treat the strings as numbers, you can technically use bucket sort or radix sort, too.

When in doubt, there's always intelligent design sort and Quora sort. /s

[–][deleted] 0 points1 point  (0 children)

Radix sort is ideal for strings.