Class cc.ArrayForObjectSorting

Class Summary
Constructor Attributes Constructor Name and Description
 
Array for object sorting utils

Method Summary

Class Detail

cc.ArrayForObjectSorting()
Array for object sorting utils

Method Detail

  • insertSortedObject(addObject)
    Inserts a given object into array. Inserts a given object into array with key and value that are used in sorting. "value" must respond to message, compare:, which returns (NSComparisonResult). If it does not respond to the message, it is appended. If the compare message does not result NSComparisonResult, sorting behavior is not defined. It ignores duplicate entries and inserts next to it.
    Parameters:
    {Object} addObject
    Object to insert