From 09982475a706e89c81583358cd2872c1e03db737 Mon Sep 17 00:00:00 2001 From: danthe1st Date: Mon, 3 Jun 2024 08:43:54 +0200 Subject: [PATCH] sort tags by name --- .../systems/staff_commands/tags/dao/CustomTagRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java b/src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java index b6521a74c..4106b9d52 100644 --- a/src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java +++ b/src/main/java/net/discordjug/javabot/systems/staff_commands/tags/dao/CustomTagRepository.java @@ -117,7 +117,7 @@ public Optional findById(long id) throws DataAccessException { * @return A List with all custom commands. */ public List 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); }