code: def sort(self, callback=None):
          
          items = self.items
  
          if callback:
              return self.__class__(sorted(items, key=callback))
          else:
              return self.__class__(sorted(items))
docs: Sort through each item with a callback.
  
          :param callback: The callback
          :type callback: callable or None
  
          :rtype: Collection