From b65e9a5cba4b68c48a3843acb6c0a3fa024eaa85 Mon Sep 17 00:00:00 2001
From: jdelhome3578 <jdelaney@tallmadge-ohio.org>
Date: Fri, 28 Aug 2015 10:43:25 -0400
Subject: [PATCH] topic: Sort list case insensitively

Fixes #2350 in `develop`
---
 include/staff/helptopics.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/staff/helptopics.inc.php b/include/staff/helptopics.inc.php
index 6f172e697..2a7c8f53d 100644
--- a/include/staff/helptopics.inc.php
+++ b/include/staff/helptopics.inc.php
@@ -28,7 +28,7 @@ foreach ($topics as &$t)
     $t['name'] = Topic::getTopicName($t['topic_id']);
 
 if ($cfg->getTopicSortMode() == 'a')
-    usort($topics, function($a, $b) { return strcmp($a['name'], $b['name']); });
+    usort($topics, function($a, $b) { return strcasecmp($a['name'], $b['name']); });
 
 ?>
 <div class="pull-left" style="width:700px;padding-top:5px;">
-- 
GitLab