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(); } }