Created spike test for sort function