style: format

This commit is contained in:
Team1280Programming 2024-02-19 20:33:19 +00:00 committed by Team 1280 Programming Laptop
parent 9b3d127ef0
commit 934cff02b1

View file

@ -25,9 +25,7 @@ const checkAffiliation = (
return false
}
const getNumberOfDocumentsByAffiliation = (
affiliationShort: string
) => {
const getNumberOfDocumentsByAffiliation = (affiliationShort: string) => {
// Find authors with the given affiliation
const results: DocumentWithSlug[] = []
for (const [key, value] of Object.entries(authors)) {
@ -69,9 +67,7 @@ export default function getAffiliations(): string[] {
affiliations[i]
)
}
affiliations.sort(
(a, b) => affiliationDocs[b] - affiliationDocs[a]
)
affiliations.sort((a, b) => affiliationDocs[b] - affiliationDocs[a])
return affiliations
}