Backend for songs.zachdecook.com
* Sorting: Make title sorting case insensitive
Zach DeCook 2018-03-20
parent c48449a · commit 07f0d6d
-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 );
}