Edited main.m
Sort an array