Showing networks first in child entity list.

This commit is contained in:
2026-01-23 02:13:53 +01:00
parent 1e089f731a
commit 471ee42c0e
3 changed files with 2 additions and 19 deletions

View File

@@ -119,6 +119,7 @@ export async function fetchEntitiesById(entityIds, options = {}, reqUser) {
.whereIn('entities.parent_id', entityIds)
.whereNot('type', 'info')
.orderBy([
{ column: knex.raw('array_position(array[\'network\', \'channel\']::varchar[], type)'), order: 'asc' },
{ column: 'independent', order: 'desc' },
{ column: 'slug', order: 'asc' },
]) : [],