Skip to content

Commit 89e97ab

Browse files
committed
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.
1 parent 75ffc50 commit 89e97ab

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/io/fs_store.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,8 @@ impl KVStore for FilesystemStore {
222222
}
223223
}
224224

225+
keys.sort();
226+
225227
Ok(keys)
226228
}
227229
}

src/io/sqlite_store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ impl KVStore for SqliteStore {
160160
})?);
161161
}
162162

163+
keys.sort();
163164
Ok(keys)
164165
}
165166
}

0 commit comments

Comments
 (0)