about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-11 19:05:48 -0400
committerJune McEnroe <june@causal.agency>2020-07-11 19:05:48 -0400
commitc68d3c98973c276c46227db0e3968b4e97d90831 (patch)
tree1b074cc8010631b991ae3922f4bf132d820b2713
parentDim search result context links (diff)
downloadscooper-c68d3c98973c276c46227db0e3968b4e97d90831.tar.gz
scooper-c68d3c98973c276c46227db0e3968b4e97d90831.zip
Sort networks and contexts case-insensitively
-rw-r--r--contexts.c2
-rw-r--r--networks.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/contexts.c b/contexts.c
index e7f44e4..39974bb 100644
--- a/contexts.c
+++ b/contexts.c
@@ -38,7 +38,7 @@ const char *ContextsQuery = SQL(
 		SELECT name, query
 		FROM contexts
 		WHERE network = :network AND query <= NOT :public
-		ORDER BY query, name
+		ORDER BY query, name COLLATE NOCASE
 	)
 	SELECT name, query, 1 FROM activeContexts
 	UNION ALL
diff --git a/networks.c b/networks.c
index 4fcd476..c0f171a 100644
--- a/networks.c
+++ b/networks.c
@@ -36,7 +36,7 @@ const char *NetworksQuery = SQL(
 	), allNetworks AS (
 		SELECT DISTINCT network
 		FROM contexts
-		ORDER BY network
+		ORDER BY network COLLATE NOCASE
 	)
 	SELECT network, 1 FROM activeNetworks
 	UNION ALL
-07 01:17:22 -0400'>2018-08-07Handle PART and QUIT without messagesJune McEnroe 2018-08-07Make safe filling the who bufferJune McEnroe 2018-08-07Add reverse and reset IRC formatting codesJune McEnroe 2018-08-06Rewrite line editing again, add formattingJune McEnroe 2018-08-06Fix allocation size in vaswprintfJune McEnroe 2018-08-06Implement word wrappingJune McEnroe 2018-08-06Use wchar_t strings for all of UIJune McEnroe 2018-08-06Rename line editing functionsJune McEnroe 2018-08-05Initialize all possible color pairsJune McEnroe 2018-08-05Refactor color initializationJune McEnroe 2018-08-05Add ^L redrawJune McEnroe 2018-08-05Use 16 colors if availableJune McEnroe 2018-08-05Limit parsed colors to number of mIRC colorsJune McEnroe 2018-08-04Show source link on exitJune McEnroe 2018-08-04Implement line editing, scrollingJune McEnroe 2018-08-04Handle /topicJune McEnroe