Handle deprecated gql sort again (#983)

This commit is contained in:
schroda
2024-06-28 15:21:32 +02:00
committed by GitHub
parent af9ad61174
commit e0fcae2ae3
7 changed files with 8 additions and 8 deletions

View File

@@ -183,7 +183,7 @@ class ExtensionQuery {
res.applyOps(condition, filter)
if (order != null || (last != null || before != null)) {
if (order != null || orderBy != null || (last != null || before != null)) {
val baseSort = listOf(ExtensionOrder(ExtensionOrderBy.PKG_NAME, SortOrder.ASC))
val deprecatedSort = listOfNotNull(orderBy?.let { ExtensionOrder(orderBy, orderByType) })
val actualSort = (order.orEmpty() + deprecatedSort + baseSort)