lib/cocoapods-core/yaml_converter.rb
def sorted_array(array)
        array.sort do |x, y|
          x_string = sorting_string(x)
          y_string = sorting_string(y)
          x_string <=> y_string
        end
      end
# Sorts an array according to the string representation of it values.
# This method allows to sort arrays which contains strings or hashes.
#
# @note   If the value contained in the array is another Array or a Hash
#         the first value of the collection is used for sorting, as this
#         method is more useful, for arrays which contains a collection
#         composed by one object.
#
# @todo   This stuff is here only because the Lockfile intermixes strings
#         and hashes for the `PODS` key. The Lockfile should be more
#         consistent.
#
# @return [Array] The sorted array.
#
Sorts an array according to the string representation of it values.
This method allows to sort arrays which contains strings or hashes.
Sorts an array according to the string representation of it values . This method allows to sort arrays which contains strings or hashes .
def sorted_array(array)
        array.sort do |x, y|
          x_string = sorting_string(x)
          y_string = sorting_string(y)
          x_string <=> y_string
        end
      end
def sorted_array ( array ) array . sort do | x , y | x_string = sorting_string ( x ) y_string = sorting_string ( y ) x_string <=> y_string end end
Sorts an array according to the string representation of it values.
Sorts an array according to the string representation of it values .
The sorted array.
The sorted array .
Array
array
note
If the value contained in the array is another Array or a Hash the first value of the collection is used for sorting, as this method is more useful, for arrays which contains a collection composed by one object.
If the value contained in the array is another Array or a Hash the first value of the collection is used for sorting as this method is more useful for arrays which contains a collection composed by one object .
todo
This stuff is here only because the Lockfile intermixes strings and hashes for the `PODS` key. The Lockfile should be more consistent.
This stuff is here only because the Lockfile intermixes strings and hashes for the ` PODS ` key . The Lockfile should be more consistent .