MathWorks Interview Question

Write a sorting algorithm.