Skip to content

Commit

Permalink
list_pipelines is will now output a sorted list (previously operated …
Browse files Browse the repository at this point in the history
…on the os.dir find order)
  • Loading branch information
bryce-turner committed Oct 10, 2023
1 parent 1d13aa3 commit 877d73b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jetstream/pipelines.py
Expand Up @@ -229,5 +229,5 @@ def is_pipeline(path):


def list_pipelines(*dirs):
"""Returns all pipelines found as a list"""
return list(find_pipelines(*dirs))
"""Returns all pipelines found as a sorted list"""
return list(sorted(find_pipelines(*dirs), key=lambda p: parse_pipeline_version(p.version)))

0 comments on commit 877d73b

Please sign in to comment.