Skip to content

Commit

Permalink
Merge pull request #1606 from SynBioHub/alphaGraphs
Browse files Browse the repository at this point in the history
Alphabetize list of graphs in admin/graphs
cjmyers authored Jan 14, 2025
2 parents 6d74879 + fa230a9 commit 6304492
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/views/admin/sparql.js
Original file line number Diff line number Diff line change
@@ -40,6 +40,9 @@ function form (req, res, locals) {

graphs = graphs.filter(result => result.startsWith(config.get('triplestore').graphPrefix))

// Alphabetize the filtered graphs
graphs.sort((a, b) => a.localeCompare(b))

return Promise.all(
graphs.map((graph) => graphInfo(graph))
)

0 comments on commit 6304492

Please sign in to comment.