Мелкий рефакторинг

This commit is contained in:
Book Pauk
2022-12-16 14:44:16 +07:00
parent 88f5a98c55
commit 254118f845

View File

@@ -147,7 +147,7 @@ class JembaReaderStorage {
try {
const sorted = [];
for (const [id, obj] of this.cacheMap)
sorted.push(Object.assign({id}, obj));
sorted.push({id, time: obj.time});
sorted.sort((a, b) => b.time - a.time);