use sort method with spaceships to sort array of arrays