From 010390b95f44fd9b1eafbe26e6106ac7c2d1ed99 Mon Sep 17 00:00:00 2001 From: jude-lafitteIII Date: Thu, 21 May 2020 00:04:11 +0100 Subject: [PATCH] corrected the other order by --- src/sound.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound.rs b/src/sound.rs index a435581..5456ef4 100644 --- a/src/sound.rs +++ b/src/sound.rs @@ -77,9 +77,9 @@ SELECT name, id, plays, public, server_id, uploader_id uploader_id = ? OR server_id = ? ) - ORDER BY rand(), public = 1, server_id = ?, uploader_id = ? + ORDER BY uploader_id = ? DESC, server_id = ? DESC, public = 1 DESC, rand() ", - name, user_id, guild_id, guild_id, user_id + name, user_id, guild_id, user_id, guild_id ) .fetch_all(&db_pool) .await?;