summaryrefslogtreecommitdiff
path: root/src/app/api/location/route.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/api/location/route.tsx')
-rw-r--r--src/app/api/location/route.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app/api/location/route.tsx b/src/app/api/location/route.tsx
index 7139c6d..1b5cb43 100644
--- a/src/app/api/location/route.tsx
+++ b/src/app/api/location/route.tsx
@@ -17,7 +17,8 @@ export async function GET(request: NextRequest) {
companyId,
name: { mode: 'insensitive', contains: search ?? '' }
},
- take: 20
+ take: 20,
+ orderBy: { name: 'asc' }
})
return NextResponse.json(locations)