Skip to content

Commit

Permalink
change sort
Browse files Browse the repository at this point in the history
  • Loading branch information
moogoo78 committed Jul 10, 2024
1 parent 1fc121e commit 57cd3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/js/data-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
];

resultBody.innerHTML = '';
fetch(`/api/v1/search?filter=${JSON.stringify(filtr)}&range=${JSON.stringify(range)}&sort=${JSON.stringify(["-created"])}`)
fetch(`/api/v1/search?filter=${JSON.stringify(filtr)}&range=${JSON.stringify(range)}&sort=${JSON.stringify(["-accession_number"])}`)
.then( resp => resp.json())
.then( result => {
console.log(result);
Expand Down

0 comments on commit 57cd3b0

Please sign in to comment.