Mercurial > prosody-modules
changeset 5759:c7affea8bb24
mod_storage_s3: Fix sorting items by correct field
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 02 Dec 2023 12:21:26 +0100 |
parents | 32bc648e3892 |
children | 59e38aaa3ec1 |
files | mod_storage_s3/mod_storage_s3.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_storage_s3/mod_storage_s3.lua Sat Dec 02 12:20:36 2023 +0100 +++ b/mod_storage_s3/mod_storage_s3.lua Sat Dec 02 12:21:26 2023 +0100 @@ -298,7 +298,7 @@ if a.when ~= b.when then return a.when < b.when; end - return a.id < b.id; + return a.key < b.key; end); if query["reverse"] then keys:reverse();