summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-09-18 22:10:54 -0500
committerDan McGee <dan@archlinux.org>2012-09-18 22:10:54 -0500
commite9c4985538c067a09a186967f77c5395fb60675b (patch)
tree484564904ec9c9fe0bd3de15a036691e480ca57b /mirrors
parentc76e5c768687394b8022883d01edf85dc3c30e7f (diff)
Sort mirrorlist by English country name, not ISO code
Fixes FS#31503. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-rw-r--r--mirrors/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mirrors/views.py b/mirrors/views.py
index 2c2577f4..11719223 100644
--- a/mirrors/views.py
+++ b/mirrors/views.py
@@ -134,7 +134,7 @@ def find_mirrors(request, countries=None, protocols=None, use_status=False,
urls = qset
if not use_status:
- sort_key = attrgetter('real_country', 'mirror.name', 'url')
+ sort_key = attrgetter('real_country.name', 'mirror.name', 'url')
urls = sorted(urls, key=sort_key)
template = 'mirrors/mirrorlist.txt'
else: