From 851da8a98c7cd77a83a39c930023a9790e7febd3 Mon Sep 17 00:00:00 2001 From: Bruce Leidl Date: Tue, 15 Jan 2019 16:53:39 -0500 Subject: [PATCH] sort partitions by path --- libcitadel/src/partition.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/libcitadel/src/partition.rs b/libcitadel/src/partition.rs index d88d347..649174a 100644 --- a/libcitadel/src/partition.rs +++ b/libcitadel/src/partition.rs @@ -22,6 +22,7 @@ impl Partition { let partition = Partition::load(&path)?; v.push(partition); } + v.sort_unstable_by(|a,b| a.path().cmp(b.path())); Ok(v) }