Skip to content

Commit 6482ad2

Browse files
committed
don't reverse order for things not found locally
1 parent 9879fca commit 6482ad2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/people.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function updatePeopleInputs() {
141141
return {
142142
results: data['expanded-result']
143143
//Sort to bring recently used ORCIDS to the top of the list
144-
.sort((a, b) => (localStorage.getItem(b['orcid-id'])) ? 1 : -1)
144+
.sort((a, b) => (localStorage.getItem(b['orcid-id'])) ? 1 : 0)
145145
.map(
146146
function(x) {
147147
return {

0 commit comments

Comments
 (0)