Skip to content

Commit

Permalink
provide fixed order for results
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate-Wessel committed Jun 11, 2024
1 parent 210c914 commit 501c6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/spatialData.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export class SpatialData {
let currentKeys = [...this.#queries.keys()]
currentKeys.filter( key => ! currentURIs.has(key) )
.forEach( key => this.#queries.delete(key) )
return [...this.#queries.values()]
return [...this.#queries.values()].sort((a,b)=> a.URI < b.URI ? -1 : 1)
}
fetchAllResults(){
return Promise.all(
Expand Down

0 comments on commit 501c6f9

Please sign in to comment.