Create Sort

Deals with the sorting of arrays