def sort_by(self, *ids):
        files = {str(f_.file_id): f_.key for f_ in self}
        self.filesmap = OrderedDict([
            (files.get(id_, id_), self[files.get(id_, id_)].dumps())
            for id_ in ids
        ])
        self.flush()