method

safe_sort

rspec latest stable - Class: Spec::Matchers::MatchArray
safe_sort(array)
private

No documentation available.

# File lib/spec/matchers/match_array.rb, line 36
        def safe_sort(array)
          array.all?{|item| item.respond_to?(:<=>)} ? array.sort : array
        end