about summary refs log tree commit diff
path: root/page.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-03-20 12:18:58 -0400
committerZach DeCook <zachdecook@gmail.com>2018-03-20 12:19:10 -0400
commitc48449a69211d1385f477f4c87896491770ce4c6 (patch)
treefa9998c6ea31b64007ea5398c0b502db71e5072b /page.php
parent316c95cad96e89afc68d315e9f4fa5b9cf322006 (diff)
downloadprosongsa-c48449a69211d1385f477f4c87896491770ce4c6.tar.gz
* Table of contents: add title sort
Diffstat (limited to 'page.php')
-rw-r--r--page.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/page.php b/page.php
index 94d0317..4213f0b 100644
--- a/page.php
+++ b/page.php
@@ -50,6 +50,9 @@ function toc( $sort ){
 		else if ( $sort == 'verse' ){
 			usort( $entries, 'tocBooksort' );
 		}
+		else if ( $sort == 'title' ){
+			usort( $entries, 'tocTitlesort' );
+		}
 	}
 	foreach( $entries as $item ){
 		$toc .= tocentry($item);