From 7e999f0a1d9d2d320317163da41065a0df9d60b7 Mon Sep 17 00:00:00 2001 From: Ske Date: Sun, 14 Jul 2019 21:48:10 +0200 Subject: [PATCH] Ensure switch fronter order is stable --- PluralKit.Core/Stores.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}); }