Skip to content

Commit

Permalink
ordered by title in ascending order
Browse files Browse the repository at this point in the history
  • Loading branch information
SubinQKim committed Jan 31, 2024
1 parent 492c83c commit aa48acc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routes/catalog.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ catalogRouter.get('/', async (req, res) => {
params.push('');
}

query += ' ORDER BY title ASC';

const reqInfo = await db.query(query, params);
res.status(200).json(keysToCamel(reqInfo));
} catch (err) {
Expand Down

0 comments on commit aa48acc

Please sign in to comment.