Leadzai Interview Question

How do you sort an array?