diff --git a/server/src/resolvers/Query/wifiDevices.js b/server/src/resolvers/Query/wifiDevices.js index aef3f6c..3418565 100644 --- a/server/src/resolvers/Query/wifiDevices.js +++ b/server/src/resolvers/Query/wifiDevices.js @@ -5,7 +5,7 @@ export async function wifiDevices(_, { identifiedOnly, nonIdentifiedOnly }) { throw new Error('Invalid combination of filters') return prisma.wifiDevice.findMany({ - orderBy: [{ lastSeen: 'desc' }], + orderBy: [{ lastSeen: 'desc' }, { hostname: 'asc' }], where: identifiedOnly ? { NOT: { userId: null } } : nonIdentifiedOnly