order by ID descending

This commit is contained in:
2022-09-15 13:16:05 +01:00
parent 5ce9ca3923
commit 64e7eb4a53
2 changed files with 7 additions and 11 deletions
+4 -4
View File
@@ -190,7 +190,7 @@ LIMIT 25
SELECT name, id, public, server_id, uploader_id
FROM sounds
WHERE uploader_id = ?
ORDER BY name
ORDER BY id DESC
LIMIT ?, ?
",
user_id.into(),
@@ -207,7 +207,7 @@ SELECT name, id, public, server_id, uploader_id
SELECT name, id, public, server_id, uploader_id
FROM sounds
WHERE uploader_id = ?
ORDER BY name
ORDER BY id DESC
",
user_id.into()
)
@@ -232,7 +232,7 @@ SELECT name, id, public, server_id, uploader_id
SELECT name, id, public, server_id, uploader_id
FROM sounds
WHERE server_id = ?
ORDER BY name
ORDER BY id DESC
LIMIT ?, ?
",
guild_id.into(),
@@ -250,7 +250,7 @@ SELECT name, id, public, server_id, uploader_id
SELECT name, id, public, server_id, uploader_id
FROM sounds
WHERE server_id = ?
ORDER BY name
ORDER BY id DESC
",
guild_id.into()
)