class Spec::Matchers::MatchArray

def safe_sort(array)

def safe_sort(array)
  array.all?{|item| item.respond_to?(:<=>)} ? array.sort : array
end