Skip to content

Commit 27bc803

Browse files
authored
Merge pull request #177 from uw-ssec/kc-pit-2026-test
Sorting locations alphabetically by name for easier lookup.
2 parents 7e49615 + 7e00481 commit 27bc803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/routes/locations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ router.get('/', async (req: Request, res: Response, next: NextFunction) => {
3535
try {
3636
const result = await Location.find({
3737
$and: [req.query]
38-
});
38+
}).sort({ hubName: 1 });
3939
res.status(200).json({
4040
message: 'Locations fetched successfully',
4141
data: result.map(item => item.toObject())

0 commit comments

Comments
 (0)