create a sort algorithm (e.g., bubble, insertion, selection) to sort data in an array;