From 29fd956673920c2b94229ffc7e9a23c8cb770e59 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Tue, 23 Aug 2011 20:07:53 -0700 Subject: [PATCH] Sort SR list case-insensitively on submit page. --- r2/r2/models/subreddit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/models/subreddit.py b/r2/r2/models/subreddit.py index 4b80f9440..5c3819127 100644 --- a/r2/r2/models/subreddit.py +++ b/r2/r2/models/subreddit.py @@ -536,7 +536,7 @@ class Subreddit(Thing, Printable): sorted/rearranged version of user_subreddits().""" srs = cls.user_subreddits(user, ids = False) names = [s.name for s in srs if s.can_submit(user)] - names.sort() + names.sort(key=str.lower) #add the current site to the top (default_sr) if g.default_sr in names: