Skip to content

Commit 0998247

Browse files
committed
sort tags by name
1 parent ea1e5a3 commit 0998247

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public Optional<CustomTag> findById(long id) throws DataAccessException {
117117
* @return A List with all custom commands.
118118
*/
119119
public List<CustomTag> getCustomTagsByGuildId(long guildId) {
120-
return jdbcTemplate.query("SELECT * FROM custom_tags WHERE guild_id = ?", (rs, row)->this.read(rs),
120+
return jdbcTemplate.query("SELECT * FROM custom_tags WHERE guild_id = ? ORDER BY name", (rs, row)->this.read(rs),
121121
guildId);
122122
}
123123

0 commit comments

Comments
 (0)