Skip to content

Commit

Permalink
Fix sorting in KAT-alogus (1.10) (#1290)
Browse files Browse the repository at this point in the history
Co-authored-by: Rieven <[email protected]>
  • Loading branch information
dekkers and Rieven authored Jun 27, 2023
1 parent d9530c8 commit beb6d01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocky/katalogus/views/katalogus.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def sort_queryset(self, queryset, sort_options):
if sort_options == "a-z":
return queryset
if sort_options == "z-a":
return reversed(queryset)
return queryset[::-1]
if sort_options == "enabled-disabled":
return sorted(queryset, key=lambda item: not item["enabled"])
if sort_options == "disabled-enabled":
Expand Down

0 comments on commit beb6d01

Please sign in to comment.