From 192ac83f98e073874f2f9d4d11f997c07cc3f428 Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Fri, 14 Oct 2022 16:13:19 +0000 Subject: [PATCH] bug: repo list with latest image did not sort by update time Signed-off-by: Andrei Aaron --- pkg/extensions/search/resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/extensions/search/resolver.go b/pkg/extensions/search/resolver.go index 24dc4345d..b1730e7dc 100644 --- a/pkg/extensions/search/resolver.go +++ b/pkg/extensions/search/resolver.go @@ -139,7 +139,7 @@ func repoListWithNewestImage( Limit: safeDerefferencing(requestedPage.Limit, 0), Offset: safeDerefferencing(requestedPage.Offset, 0), SortBy: repodb.SortCriteria( - safeDerefferencing(requestedPage.SortBy, gql_generated.SortCriteriaRelevance), + safeDerefferencing(requestedPage.SortBy, gql_generated.SortCriteriaUpdateTime), ), }