Skip to content

Commit

Permalink
correct order in list
Browse files Browse the repository at this point in the history
  • Loading branch information
neunenak committed Nov 22, 2023
1 parent 6dd0e0c commit 9d534fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/justfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,13 @@ impl<'src> Justfile<'src> {
.collect::<Vec<&Recipe<Dependency>>>();

if source_order {
recipes.sort_by_key(|recipe| recipe.name.offset);
recipes.sort_by_key(|recipe| {
recipe
.provenance
.as_ref()
.map(|p| p.global_order)
.unwrap_or_default()
});
}

recipes
Expand Down

0 comments on commit 9d534fb

Please sign in to comment.