Queue Sorting
Sort the music queue and clean it up with queue commands.
Last updated Nov 16, 2026
Sign in to suggest an edit to this page.
Overview
Cakey Bot has several sorting methods to keep your queue in order. You can also bulk remove songs from the queue using these filters.
Queue Sorting
These options allow you to re-sort songs that are currently in the queue. They do not affect the currently playing song.
| Subcommand | Description | Command Example | Requires Arguments |
|---|---|---|---|
title |
Sorts the queue by song titles (A-Z or Z-A). | c!sortqueue title asc |
Yes (asc/desc) |
author |
Sorts the queue by the song author (A-Z or Z-A). | c!sortqueue author desc |
Yes (asc/desc) |
length |
Sorts the queue by song duration (shortest to longest or vice versa). | c!sortqueue length asc |
Yes (asc/desc) |
reverse |
Reverses the entire queue order. | c!sortqueue reverse |
No |
swap |
Swaps the positions of two songs in the queue by their track IDs. | c!sortqueue swap 2 5 |
Yes (2 track IDs) |
Queue Cleanup
These options let you remove a few songs, or many at once, using a few different filters. This can help remove spam and keep the queue clean overall.
| Subcommand | Description | Command Example | Requires Arguments |
|---|---|---|---|
first |
Removes the very first song in the queue. | c!remove first |
No |
last |
Removes the last song in the queue. | c!remove last |
No |
single |
Removes a specific song from the queue by its track ID. | c!remove single 4 |
Yes (1 track ID) |
range |
Removes a range of songs from the queue using their numeric track IDs. | c!remove range 2 6 |
Yes (2 track IDs) |
duplicates |
Removes duplicate or repeat songs from the queue. | c!remove duplicates |
No |
userleft |
Removes all songs added by users who are no longer in the voice channel with the bot. | c!remove userleft |
No |
user |
Removes all songs added by a specific user. | c!remove user @Username |
Yes (user mention or ID) |
keyword |
Removes all songs where the title contains a specific keyword (e.g., to filter inappropriate content). | c!remove keyword loud |
Yes (keyword string) |
Related Commands
Removes songs from the queue if their title contains the specified keyword.
/remove keyword <keyword>Removes songs from the queue that were added by the specified user.
/remove user <user>Removes songs from the queue if users are no longer in the voice channel.
/remove userleft
Was this page helpful?