From e52405f47ad7faab0a7a100a622eae2fe420a9db Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Tue, 11 Aug 2015 11:24:35 -0400
Subject: don't refresh page on channel creation and ignore case when sorting
 channels in sidebar

---
 web/react/components/sidebar.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/react/components/sidebar.jsx')

diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index f4992d4e3..46dfc1200 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -116,10 +116,10 @@ function getStateFromStores() {
     var channels = ChannelStore.getAll();
     if (channels) {
         channels.sort(function chanSort(a, b) {
-            if (a.display_name < b.display_name) {
+            if (a.display_name.toLowerCase() < b.display_name.toLowerCase()) {
                 return -1;
             }
-            if (a.display_name > b.display_name) {
+            if (a.display_name.toLowerCase() > b.display_name.toLowerCase()) {
                 return 1;
             }
             return 0;
-- 
cgit v1.2.3-1-g7c22

