The Julia’s built-in sort function is a pretty useful beast. Let’s try to replicate some of its functionality.
Read about different sorting algorithms and implement one or two of them. As a minimum requirement your sorting function/s should correctly sort a vector of numbers (integers and floats), e.g.
yourSortingFn([47, 15, 23, 99, 4])
Should return:
[4, 15, 23, 47, 99]
If you want to make it more challenging, try to sort the numbers from 1 to 10 in alphabetical order, e.g.
yourSortingFn([1, 11, 6], possibleOtherArgs)
should return:
[11, 1, 6]
Since “eleven” comes before “one” and before “six” (“e” < “o” < “s”).