Skip to content

Commit f9135fe

Browse files
committed
Remove shelf ordering, instead only order by Author and Title.
1 parent fc19b9a commit f9135fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

api/Services/BookService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ public ICollection<Book> GetBooks()
2121

2222
// apply a sensible default ordering to the list
2323
books = books
24-
.OrderBy(b => b.ShelfLocation ?? "99999")
25-
.ThenBy(b => b.Author)
24+
.OrderBy(b => b.Author)
2625
.ThenBy(b => b.Title)
2726
.ToList();
2827

0 commit comments

Comments
 (0)