From 4ba81b9ffe400ccd246cb20f23bf2557f30234a2 Mon Sep 17 00:00:00 2001 From: Alex Ling Date: Wed, 11 Mar 2020 19:28:04 +0000 Subject: [PATCH] Sort download jobs listed on the download manager by time --- src/mangadex/downloader.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mangadex/downloader.cr b/src/mangadex/downloader.cr index d773c23..03e5853 100644 --- a/src/mangadex/downloader.cr +++ b/src/mangadex/downloader.cr @@ -198,7 +198,7 @@ module MangaDex def get_all jobs = [] of Job DB.open "sqlite3://#{@path}" do |db| - jobs = db.query_all "select * from queue", do |rs| + jobs = db.query_all "select * from queue order by time", do |rs| Job.from_query_result rs end end