def getItems(self, specfiles=None, sort=False, reverse=False,
                 selector=None):
        """Generator that yields filtered and/or sorted :class:`Sii` instances
        from ``self.container``.

        :param specfiles: filenames of ms-run files - if specified return only
            items from those files
        :type specfiles: str or [str, str, ...]
        :param sort: if "sort" is specified the returned list of items is sorted
            according to the :class:`Sii` attribute specified by "sort", if the
            attribute is not present the item is skipped.
        :param reverse: bool, ``True`` reverses the sort order
        :param selector: a function which is called with each ``Sii`` item and
            has to return True (include item) or False (discard item). By
            default only items with ``Sii.isValid == True`` are returned.

        :returns: items from container that passed the selector function
        """
        selector = (lambda sii: sii.isValid) if selector is None else selector
        if specfiles is None:
            specfiles = [_ for _ in viewkeys(self.info)]
        else:
            specfiles = aux.toList(specfiles)
        return _getListItems(self.container, specfiles, sort, reverse, selector)
Generator that yields filtered and/or sorted :class:`Sii` instances
        from ``self.container``.

        :param specfiles: filenames of ms-run files - if specified return only
            items from those files
        :type specfiles: str or [str, str, ...]
        :param sort: if "sort" is specified the returned list of items is sorted
            according to the :class:`Sii` attribute specified by "sort", if the
            attribute is not present the item is skipped.
        :param reverse: bool, ``True`` reverses the sort order
        :param selector: a function which is called with each ``Sii`` item and
            has to return True (include item) or False (discard item). By
            default only items with ``Sii.isValid == True`` are returned.

        :returns: items from container that passed the selector function