Commit 45484bb6 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Fix unreliable order options tests

parent e3f72473
...@@ -7,9 +7,9 @@ ...@@ -7,9 +7,9 @@
</li> </li>
--- ---
<li> <li>
<a href="?&amp;sort=score-desc">Worst score</a> <a href="?&amp;sort=score-asc">Best score</a>
</li> </li>
--- ---
<li> <li>
<a href="?&amp;sort=score-asc">Best score</a> <a href="?&amp;sort=score-desc">Worst score</a>
</li> </li>
\ No newline at end of file
<li>
<a href="?&amp;sort=name-desc">Name Z-A</a>
</li>
---
<li class="disabled"> <li class="disabled">
<a href="?&amp;sort=name-asc">Name A-Z</a> <a href="?&amp;sort=name-asc">Name A-Z</a>
</li>
---
<li>
<a href="?&amp;sort=name-desc">Name Z-A</a>
</li> </li>
\ No newline at end of file
...@@ -37,7 +37,7 @@ class RepresentativeList(CSVDownloadMixin, GridListMixin, PaginationMixin, ...@@ -37,7 +37,7 @@ class RepresentativeList(CSVDownloadMixin, GridListMixin, PaginationMixin,
'fields': ['-representative_score__score'] 'fields': ['-representative_score__score']
}, },
'score-desc': { 'score-desc': {
'order': 2, 'order': 3,
'label': 'Worst score', 'label': 'Worst score',
'fields': ['representative_score__score'] 'fields': ['representative_score__score']
} }
......
...@@ -30,7 +30,7 @@ class ThemeList(PaginationMixin, SortMixin, PositionFormMixin, ...@@ -30,7 +30,7 @@ class ThemeList(PaginationMixin, SortMixin, PositionFormMixin,
'fields': ['name'] 'fields': ['name']
}, },
'name-desc': { 'name-desc': {
'order': 0, 'order': 1,
'label': 'Name Z-A', 'label': 'Name Z-A',
'fields': ['-name'] 'fields': ['-name']
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment