diff --git a/crates/turborepo-lib/src/query/file.rs b/crates/turborepo-lib/src/query/file.rs index 95946ef0220d2d..1c7aedd2193a7c 100644 --- a/crates/turborepo-lib/src/query/file.rs +++ b/crates/turborepo-lib/src/query/file.rs @@ -174,6 +174,7 @@ impl File { run: self.run.clone(), name: name.clone(), }) + .sorted_by(|a, b| a.name.cmp(&b.name)) .collect()), Ok(Some(PackageMapping::Package(package))) => { let node: PackageNode = PackageNode::Workspace(package.name.clone());