sort stats list by name

This commit is contained in:
Dobromir Popov
2024-04-14 16:12:11 +03:00
parent 296c1d51fc
commit a0f57ad5ba

View File

@ -220,6 +220,8 @@ export const getServerSideProps = async (context) => {
...publisher,
// Potentially add more computed properties or transformations here if needed
}));
allPublishers.sort((a, b) => a.firstName.localeCompare(b.firstName) || a.lastName.localeCompare(b.lastName));
return {
props: {