use sort method with spaceships to sort array, todo13/