Skip to content

Commit

Permalink
fix: sort saved queries in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
heumsi committed Mar 8, 2023
1 parent 7116b54 commit 5c7f46a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hollys/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def get_nodes(

def list_saved_query() -> List[model.SavedQuery]:
with pc.session() as session:
return session.query(model.SavedQuery).all()
return sorted(
session.query(model.SavedQuery).all(),
key=lambda saved_query: saved_query.name_,
)


# comment(heumsi): Not used yet. but will be used after following issue is resolved.
Expand Down

0 comments on commit 5c7f46a

Please sign in to comment.