diff --git a/Sources/tart/Commands/List.swift b/Sources/tart/Commands/List.swift index 083a621..4e73b23 100644 --- a/Sources/tart/Commands/List.swift +++ b/Sources/tart/Commands/List.swift @@ -21,7 +21,7 @@ struct List: AsyncParsableCommand { } private func displayTable(_ source: String, _ vms: [(String, VMDirectory)]) { - for (name, _) in vms { + for (name, _) in vms.sorted(by: { left, right in left.0 < right.0 }) { print("\(source)\t\(name)") } }