lib/cocoapods-core/yaml_converter.rb
# Returns the string representation of a value useful for sorting.
#
# @param  [String, Symbol, Array, Hash] value
#         The value which needs to be sorted
#
# @return [String] A string useful to compare the value with other ones.
#
Returns the string representation of a value useful for sorting.
Returns the string representation of a value useful for sorting .
def sorting_string(value)
        return "" unless value
        case value
        when String then value.downcase
        when Symbol then sorting_string(value.to_s)
        when Array  then sorting_string(value.first)
        when Hash   then value.keys.map { |key| key.to_s.downcase }.sort.first
        end
      end
def sorting_string ( value ) return "" unless value case value when String then value . downcase when Symbol then sorting_string ( value . to_s ) when Array then sorting_string ( value . first ) when Hash then value . keys . map { | key | key . to_s . downcase } . sort . first end end
Returns the string representation of a value useful for sorting.
Returns the string representation of a value useful for sorting .
A string useful to compare the value with other ones.
A string useful to compare the value with other ones .
String
value
value The value which needs to be sorted
value The value which needs to be sorted