@property<EOL><INDENT>def files(self):<DEDENT>
files_ = super(Deposit, self).files<EOL>if files_:<EOL><INDENT>sort_by_ = files_.sort_by<EOL>def sort_by(*args, **kwargs):<EOL><INDENT>"""<STR_LIT>"""<EOL>if '<STR_LIT>' != self.status:<EOL><INDENT>raise PIDInvalidAction()<EOL><DEDENT>return sort_by_(*args, **kwargs)<EOL><DEDENT>files_.sort_by = sort_by<EOL><DEDENT>return files_<EOL>
List of Files inside the deposit.

        Add validation on ``sort_by`` method: if, at the time of files access,
        the record is not a ``'draft'`` then a
        :exc:`invenio_pidstore.errors.PIDInvalidAction` is rised.