From 1aa233ca47cb27575321bc40986d6845278a339d Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Mon, 29 Mar 2021 22:26:02 -0700 Subject: [PATCH] Order files list by descending timestamp (#2374) closes #2273 --- BTCPayServer/Storage/Services/StoredFileRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Storage/Services/StoredFileRepository.cs b/BTCPayServer/Storage/Services/StoredFileRepository.cs index e7d9a9384..75db8c31b 100644 --- a/BTCPayServer/Storage/Services/StoredFileRepository.cs +++ b/BTCPayServer/Storage/Services/StoredFileRepository.cs @@ -36,6 +36,7 @@ namespace BTCPayServer.Storage.Services .Where(file => (!filesQuery.Id.Any() || filesQuery.Id.Contains(file.Id)) && (!filesQuery.UserIds.Any() || filesQuery.UserIds.Contains(file.ApplicationUserId))) + .OrderByDescending(file => file.Timestamp) .ToListAsync(); } }