From 8b948bcfbb2f0d526bf2054b321fb7a75fb53c7f Mon Sep 17 00:00:00 2001 From: Ske Date: Wed, 9 Jun 2021 12:23:23 +0200 Subject: [PATCH] Fix inconsistent order when pulling autoproxy members Signed-off-by: Ske --- PluralKit.Core/Database/Views/views.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PluralKit.Core/Database/Views/views.sql b/PluralKit.Core/Database/Views/views.sql index bd1f88ad..5fd1784b 100644 --- a/PluralKit.Core/Database/Views/views.sql +++ b/PluralKit.Core/Database/Views/views.sql @@ -3,7 +3,7 @@ create view system_last_switch as select systems.id as system, last_switch.id as switch, last_switch.timestamp as timestamp, - array(select member from switch_members where switch_members.switch = last_switch.id) as members + array(select member from switch_members where switch_members.switch = last_switch.id order by switch_members.id) as members from systems inner join lateral (select * from switches where switches.system = systems.id order by timestamp desc limit 1) as last_switch on true;