From 07f0d6d42dfdc310fbfbf3ce9efe2cc9d7da53e5 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Tue, 20 Mar 2018 15:10:23 -0400 Subject: * Sorting: Make title sorting case insensitive --- sort.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sort.php') diff --git a/sort.php b/sort.php index 6e24273..c1b72f4 100644 --- a/sort.php +++ b/sort.php @@ -7,8 +7,8 @@ function tocKeysort( $a, $b ){ } function tocTitleSort( $a, $b ){ - $aTitle = $a['title']; - $bTitle = $b['title']; + $aTitle = strtolower($a['title']); + $bTitle = strtolower($b['title']); return strcmp( $aTitle, $bTitle ); } -- cgit 1.4.1