From 055fb71f2188e30fffc1d867732de8a309dbc63e Mon Sep 17 00:00:00 2001 From: Gerrit Hoffschulte <67461498+aw-gerrit@users.noreply.github.com> Date: Thu, 20 May 2021 15:12:38 +0200 Subject: [PATCH] Added sort function to title col --- src/PagesConfig.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PagesConfig.php b/src/PagesConfig.php index 37fd213..d17d34a 100644 --- a/src/PagesConfig.php +++ b/src/PagesConfig.php @@ -109,7 +109,8 @@ public function indexTableColumns($table) protected function makeTitleColumns($table) { $table->col('Title') - ->value('{'.$this->getTitleColumnName().'}'); + ->value('{'.$this->getTitleColumnName().'}') + ->sortBy($this->getTitleColumnName()); } /**