Added empty function of sorting the array.