mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-11 09:45:27 +00:00
fix: sort series by float
This commit is contained in:
parent
f2902e8de5
commit
4b64b70753
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class BookSeriesBy(View):
|
||||||
unsortable_books.append(result)
|
unsortable_books.append(result)
|
||||||
|
|
||||||
list_results = (
|
list_results = (
|
||||||
sorted(numbered_books, key=lambda book: int(book.series_number))
|
sorted(numbered_books, key=lambda book: float(book.series_number))
|
||||||
+ sorted(
|
+ sorted(
|
||||||
dated_books,
|
dated_books,
|
||||||
key=lambda book: book.first_published_date
|
key=lambda book: book.first_published_date
|
||||||
|
|
Loading…
Reference in a new issue