Skip to content

Commit

Permalink
feat: 도서 상태 정보를 청구기호 순으로 정렬
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 committed Aug 18, 2023
1 parent 019879f commit 4912d48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/component/book/BookDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ const BookDetail = () => {
</span>
<div className="book-state__list">
<div>
{bookDetailInfo.books?.map((book, index) => (
<BookStatus key={book.id} book={book} index={index} />
))}
{bookDetailInfo.books
?.toSorted((a, b) => a.callSign.localeCompare(b.callSign))
.map((book, index) => (
<BookStatus key={book.id} book={book} index={index} />
))}
</div>
</div>
</div>
Expand Down

0 comments on commit 4912d48

Please sign in to comment.