# Fix Playlists reordering

**URL:** https://forums.plex.tv/t/fix-playlists-reordering/865894
**Category:** General Discussions
**Tags:** playlists
**Created:** [January 11, 2024, 12:04am UTC](https://forums.plex.tv/t/fix-playlists-reordering/865894 "2024-01-11T00:04:44Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![spiz73](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@spiz73](https://forums.plex.tv/u/spiz73)
#### Post date: [March 27, 2024, 8:22pm UTC](https://forums.plex.tv/t/fix-playlists-reordering/865894/4 "2024-03-27T20:22:02Z")

</div>

I’m having the same issue on an audio playlist. Hopefully I can provide a little more context, and keep this thread open. In a previous post, a user pointed out the JavaScript error that occurs when trying to re-order longer lists.

> [@Playlists cant be reordered over circa 300 items](https://forums.plex.tv/t/playlists-cant-be-reordered-over-circa-300-items/840920):
>
> Seems to be an annual question, so apologies, but I cant seem to find an answer that works for me. Essentially once you add more than 300 items to a playlist, which im trying to do for some of my long running series, you stop being able to drag any items to re-order, forcing me to open multiple series windows and click each one individually, this means if something that doesn’t belong on the end, I have to rebuild the playlist from the earliest unchanged item. I can only imagine what this w…

The error they found is **TypeError: Cannot read properties of undefined (reading ‘id’)**  
Looking at the (heavily minimized/obfuscated) code, it looks like it’s trying to get the id of the item after “drop”, but it’s not defined in the JavaScript object.

I saw a post from several years ago saying that you need to re-scan the library to fix it. I tried that, and waited for the scan to finish, but it didn’t immediately solve the issue. I also ran “Analyze” on the library, and it still didn’t seem to fix it after the analysis finished. However, I came back about 20 minutes later, and suddenly it worked again.  
My best guess is that the database needed to be refreshed, and something was happening in the background that took a little longer than the front-end indicated.

Long story short, please try re-scanning and possibly analyzing your library, then give it a little while and try again. I’m not guaranteeing it will fix the issue, but it worked for me and has worked for others in the past.

---

_[View the full topic](https://forums.plex.tv/t/fix-playlists-reordering/865894)._
