diff --git a/backend/internal/stream.js b/backend/internal/stream.js index 4d49bc3aa..50ce08324 100644 --- a/backend/internal/stream.js +++ b/backend/internal/stream.js @@ -369,7 +369,7 @@ const internalStream = { .where('is_deleted', 0) .groupBy('id') .allowGraph('[owner,certificate]') - .orderByRaw('CAST(incoming_port AS INTEGER) ASC'); + .orderBy('incoming_port', 'ASC'); if (access_data.permission_visibility !== 'all') { query.andWhere('owner_user_id', access.token.getUserId(1));