diff --git a/PluralKit.Core/Stores.cs b/PluralKit.Core/Stores.cs index a3fab10a..29774848 100644 --- a/PluralKit.Core/Stores.cs +++ b/PluralKit.Core/Stores.cs @@ -225,7 +225,7 @@ namespace PluralKit { public async Task> GetSwitchMemberIds(PKSwitch sw) { using (var conn = await _conn.Obtain()) - return await conn.QueryAsync("select member from switch_members where switch = @Switch", + return await conn.QueryAsync("select member from switch_members where switch = @Switch order by switch_members.id", new {Switch = sw.Id}); } @@ -233,7 +233,7 @@ namespace PluralKit { { using (var conn = await _conn.Obtain()) return await conn.QueryAsync( - "select * from switch_members, members where switch_members.member = members.id and switch_members.switch = @Switch", + "select * from switch_members, members where switch_members.member = members.id and switch_members.switch = @Switch order by switch_members.id", new {Switch = sw.Id}); }