style: format
This commit is contained in:
parent
9b3d127ef0
commit
934cff02b1
1 changed files with 2 additions and 6 deletions
|
@ -25,9 +25,7 @@ const checkAffiliation = (
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
const getNumberOfDocumentsByAffiliation = (
|
const getNumberOfDocumentsByAffiliation = (affiliationShort: string) => {
|
||||||
affiliationShort: string
|
|
||||||
) => {
|
|
||||||
// Find authors with the given affiliation
|
// Find authors with the given affiliation
|
||||||
const results: DocumentWithSlug[] = []
|
const results: DocumentWithSlug[] = []
|
||||||
for (const [key, value] of Object.entries(authors)) {
|
for (const [key, value] of Object.entries(authors)) {
|
||||||
|
@ -69,9 +67,7 @@ export default function getAffiliations(): string[] {
|
||||||
affiliations[i]
|
affiliations[i]
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
affiliations.sort(
|
affiliations.sort((a, b) => affiliationDocs[b] - affiliationDocs[a])
|
||||||
(a, b) => affiliationDocs[b] - affiliationDocs[a]
|
|
||||||
)
|
|
||||||
|
|
||||||
return affiliations
|
return affiliations
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue