Skip to content

Commit

Permalink
Sort values returned from KVStore::list
Browse files Browse the repository at this point in the history
This will be mandatory on the upstreamed trait anyways and is useful to
make it easiert to compare returned values.
  • Loading branch information
tnull committed Aug 24, 2023
1 parent 75ffc50 commit 89e97ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/io/fs_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ impl KVStore for FilesystemStore {
}
}

keys.sort();

Ok(keys)
}
}
Expand Down
1 change: 1 addition & 0 deletions src/io/sqlite_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ impl KVStore for SqliteStore {
})?);
}

keys.sort();
Ok(keys)
}
}
Expand Down

0 comments on commit 89e97ab

Please sign in to comment.