--Originally published at Monty Python and the Blogging Tale
So one of Ken challenges required arranging numbers in order; I knew how because it was not the first time I have used a BubbleSort, but one thing that I never learned was to arranging list in alphabetical order… thus, here are my codes.
Bubble sort for numbers, it was super easy:
And the output:
And now for the alphabetical sort:
And the ouput:
Easier than I thought.