When moving directory up/down inside the files tree, the directory gets moved inside the directory directly below it after dragging the folder.
Instead of moving the directory "Test 2" above "Test 1", the directory is now added as a child directory to "Test 1".
I expected that after moving a directory above Test 1, that the directory Test 2 is shown above Test 1, and is not added as a subdirectory.
Also noticed similar unexpected behavior of the file tree in the Media Browser when dragging files.
Now sometimes the file will be placed in the directory right underneath the divider line and sometimes it's placed in the root. So it's not consistently going wrong.
The right behavior seems to be the latter: if you place a file between two directories, in the root, it should go there. To the root.
MODX 2.5.2, Google Chrome 55.0.2883.95 (64-bit), Nginx
I'll try to fix this today.
@sdrenth @EasterPeanut
IMO sorting of directories or files should not be possible at all. Why would you want to do this? They should always be sorted alphabetically.
It should only be possible to drag directories/files inside other directories.
@labr1005 @EasterPeanut I don't think it is necessary to sort directories/files, but the problem is that the UI makes it look like it can. And as I described above, the directory is then being moved inside the other directory instead of being moved above it.
Fixed in 2.5.6