Skip to content

Commit

Permalink
sort tags by name
Browse files Browse the repository at this point in the history
  • Loading branch information
danthe1st committed Jun 3, 2024
1 parent ea1e5a3 commit 0998247
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public Optional<CustomTag> findById(long id) throws DataAccessException {
* @return A List with all custom commands.
*/
public List<CustomTag> getCustomTagsByGuildId(long guildId) {
return jdbcTemplate.query("SELECT * FROM custom_tags WHERE guild_id = ?", (rs, row)->this.read(rs),
return jdbcTemplate.query("SELECT * FROM custom_tags WHERE guild_id = ? ORDER BY name", (rs, row)->this.read(rs),
guildId);
}

Expand Down

0 comments on commit 0998247

Please sign in to comment.