From 946af677d098ff94127db36c355e8ac93c477001 Mon Sep 17 00:00:00 2001 From: Andrew Dewar Date: Wed, 24 Apr 2024 16:02:22 +0100 Subject: [PATCH] Fixes 4015: Force order by issued-date desc --- pkg/tangy/rpm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/tangy/rpm.go b/pkg/tangy/rpm.go index 6863055..78f8534 100644 --- a/pkg/tangy/rpm.go +++ b/pkg/tangy/rpm.go @@ -310,7 +310,7 @@ func (t *tangyImpl) RpmRepositoryVersionErrataList(ctx context.Context, hrefs [] args["limit"] = pageOpts.Limit args["offset"] = pageOpts.Offset rows, err := conn.Query(ctx, queryOpen+innerUnion+filterQuery+ - " ORDER BY re.id ASC, re.title ASC, re.issued_date ASC, re.type ASC, re.severity ASC LIMIT @limit OFFSET @offset", + " ORDER BY re.issued_date DESC, re.title ASC, re.type ASC, re.severity ASC LIMIT @limit OFFSET @offset", args) if err != nil { return nil, 0, err