I made some changes to the script regarding the context menu. Please add these to the main script if you like them.
- Changed order of items
- Grouped all items that have to do with folder and playlist maintenance together
- Created submenu for filter items called Sort folder
- Added the name of the selected folder as a standalone item in this submenu
- Renamed the filter items to Ascending order and Descending order respectively

Added this line
this.sortMenu = window.CreatePopupMenu();
After this line
this.createM = window.CreatePopupMenu();
Modified the filter items code to this
// Sort folders
var filt = "";
if (selected.index > -1) {
if (selected.pl == 1) filt = this.display[selected.index].fold;
else filt = this.display[selected.index].name;
}
this.sortMenu.AppendTo(this.s, EnableMenuIf(selected.index > -1), 'Sort Folder');
this.sortMenu.AppendMenuItem(MF_GRAYED, 0, (filt == "" ? 'Root' : filt));
this.sortMenu.AppendMenuSeparator();
this.sortMenu.AppendMenuItem(EnableMenuIf(selected.index > -1), 1450, 'Ascending order');
this.sortMenu.AppendMenuItem(EnableMenuIf(selected.index > -1), 1460, 'Descending order');
And you'll have to sort the items like I did in the included screen shot.
If there is any easier way to do this just let me know. PM me if you want my pl_organizer.js