Software /
code /
prosody-modules
Comparison
mod_storage_s3/mod_storage_s3.lua @ 5782: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 |
parent | 5781:32bc648e3892 |
child | 5783:59e38aaa3ec1 |
comparison
equal
deleted
inserted
replaced
5781:32bc648e3892 | 5782:c7affea8bb24 |
---|---|
296 return a.date < b.date | 296 return a.date < b.date |
297 end | 297 end |
298 if a.when ~= b.when then | 298 if a.when ~= b.when then |
299 return a.when < b.when; | 299 return a.when < b.when; |
300 end | 300 end |
301 return a.id < b.id; | 301 return a.key < b.key; |
302 end); | 302 end); |
303 if query["reverse"] then | 303 if query["reverse"] then |
304 keys:reverse(); | 304 keys:reverse(); |
305 end | 305 end |
306 local i = 0; | 306 local i = 0; |