Sort SR list case-insensitively on submit page.

This commit is contained in:
Neil Williams
2011-08-23 20:07:53 -07:00
parent 9122dd055a
commit 29fd956673

View File

@@ -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: