From 89e97abfd400eee84c4071f72de7e88cde52bcbd Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Thu, 24 Aug 2023 11:01:06 +0200 Subject: [PATCH] Sort values returned from `KVStore::list` This will be mandatory on the upstreamed trait anyways and is useful to make it easiert to compare returned values. --- src/io/fs_store.rs | 2 ++ src/io/sqlite_store.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/io/fs_store.rs b/src/io/fs_store.rs index 4eb067bf1..93141b021 100644 --- a/src/io/fs_store.rs +++ b/src/io/fs_store.rs @@ -222,6 +222,8 @@ impl KVStore for FilesystemStore { } } + keys.sort(); + Ok(keys) } } diff --git a/src/io/sqlite_store.rs b/src/io/sqlite_store.rs index 0c71d9e51..729e313ec 100644 --- a/src/io/sqlite_store.rs +++ b/src/io/sqlite_store.rs @@ -160,6 +160,7 @@ impl KVStore for SqliteStore { })?); } + keys.sort(); Ok(keys) } }