Showing networks first in child entity list.
This commit is contained in:
@@ -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' },
|
||||
]) : [],
|
||||
|
||||
Reference in New Issue
Block a user