I’ve updated this script so it works again with YouTube’s current layout (as of 2025). The new version keeps all original features (sort ascending/descending, stop button, sort only loaded vs all, etc.) but fixes broken selectors and playlist loading logic so it works reliably again.
I’ve also submitted a pull request on GitHub so the author can merge the changes into the main script. Until that happens, anyone can use this updated version directly.
Credits to KohGeek for the original script — this update just restores compatibility with modern YouTube.
I’ve updated this script so it works again with YouTube’s current layout (as of 2025).
The new version keeps all original features (sort ascending/descending, stop button, sort only loaded vs all, etc.) but fixes broken selectors and playlist loading logic so it works reliably again.
You can view or install the working version here:
👉 https://github.com/Martin862/SortYoutubePlaylistByDuration/tree/Martin862-patch-1
I’ve also submitted a pull request on GitHub so the author can merge the changes into the main script.
Until that happens, anyone can use this updated version directly.
Credits to KohGeek for the original script — this update just restores compatibility with modern YouTube.