Skip to content

Commit

Permalink
fix: .toSorted instead of .sort
Browse files Browse the repository at this point in the history
  • Loading branch information
NiiMiyo committed Nov 16, 2023
1 parent c24dd28 commit 4c5caff
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ export function GroupContents() {
return <p className={EMPTY_LIST_CLASS}>Nenhum conteúdo encontrado com a pesquisa.</p>
}

filteredContents.sort((a, b) => a.name.localeCompare(b.name));

return filteredContents
.toSorted((a, b) => a.name.localeCompare(b.name))
.map(renderContent);
}

Expand Down

0 comments on commit 4c5caff

Please sign in to comment.