Index: sitescripts/templateFilters.py |
=================================================================== |
--- a/sitescripts/templateFilters.py |
+++ b/sitescripts/templateFilters.py |
@@ -123,19 +123,19 @@ |
def subscriptionSort(value, prioritizeRecommended=True): |
value = value[:] # create a copy of the list |
if prioritizeRecommended: |
- value.sort(lambda a, b: ( |
- cmp(a.type, b.type) or |
- cmp(a.deprecated, b.deprecated) or |
- cmp(b.catchall, a.catchall) or |
- cmp(b.recommendation != None, a.recommendation != None) or |
- cmp(a.name.lower(), b.name.lower()) |
- )) |
+ value.sort(lambda a, b: |
+ cmp(a.type, b.type) or |
+ cmp(a.deprecated, b.deprecated) or |
+ cmp(b.catchall, a.catchall) or |
+ cmp(b.recommendation != None, a.recommendation != None) or |
+ cmp(a.name.lower(), b.name.lower()) |
+ ) |
else: |
- value.sort(lambda a, b: ( |
- cmp(a.type, b.type) or |
- cmp(a.deprecated, b.deprecated) or |
- cmp(a.name.lower(), b.name.lower()) |
- )) |
+ value.sort(lambda a, b: |
+ cmp(a.type, b.type) or |
+ cmp(a.deprecated, b.deprecated) or |
+ cmp(a.name.lower(), b.name.lower()) |
+ ) |
return value |