about summary refs log tree commit diff
path: root/index.php
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@gmail.com>2018-03-20 12:08:43 -0400
committerZach DeCook <zachdecook@gmail.com>2018-03-20 12:08:43 -0400
commitb01ad1d9123ab8f497ce78fcab0c5caebc0cc993 (patch)
tree2f3e81f50a665b8316eb774b7deba4ba023954e5 /index.php
parentf3c77eac34d58d3e3c3173419a9b2c82d2141740 (diff)
downloadprosongsa-b01ad1d9123ab8f497ce78fcab0c5caebc0cc993.tar.gz
* Allow sorting by bible book and by key
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index bc25f51..9520ed3 100755
--- a/index.php
+++ b/index.php
@@ -85,7 +85,9 @@ include 'page.php';
 	$song_number = isset( $_GET['song'] ) ? $_GET['song'] : '';
 	if( ! $song_number )
 	{
-		echo toc();
+		$sort = '';
+		if ( isset( $_GET['sort'] ) ) $sort = $_GET['sort'];
+		echo toc($sort);
 	}
 	else
 	{