public function handleSortFilesByName() { if (!$this->presenter->editAllowed()) { return; } FilesModel::sortFilesBy($this->page->id, 'filename'); $this->invalidateControl('editform_filelist'); if (!$this->presenter->isAjax()) { $this->redirect('this#toc-files'); } }