about summary refs log tree commit diff
path: root/sort.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-03-20 15:10:23 -0400
committerZach DeCook <zachdecook@gmail.com>2018-03-20 15:10:23 -0400
commit07f0d6d42dfdc310fbfbf3ce9efe2cc9d7da53e5 (patch)
treeeec7cd458778a1ef1d278240a8ca96577666e69a /sort.php
parentc48449a69211d1385f477f4c87896491770ce4c6 (diff)
downloadprosongsa-07f0d6d42dfdc310fbfbf3ce9efe2cc9d7da53e5.tar.gz
* Sorting: Make title sorting case insensitive
Diffstat (limited to 'sort.php')
-rw-r--r--sort.php4
1 files changed, 2 insertions, 2 deletions
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 );
 }