def sort(self, callback=None):
        items = self.items
        if callback:
            return self.__class__(sorted(items, key=callback))
        else:
            return self.__class__(sorted(items))