mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 15:58:06 -05:00
Sort SR list case-insensitively on submit page.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user