Cimpress Interview Question

Write a function to sort an array