Method: Xcodeproj::Project::Object::AbstractObject#sort

Defined in:
lib/xcodeproj/project/object.rb

#sort(_options = nil) ⇒ Object

Sorts the to many attributes of the object according to the display name.



146
147
148
149
150
151
152
153
# File 'lib/xcodeproj/project/object.rb', line 146

def sort(_options = nil)
  to_many_attributes.each do |attrb|
    list = attrb.get_value(self)
    list.sort! do |x, y|
      x.display_name.downcase <=> y.display_name.downcase
    end
  end
end