Reordering layers via drag-and-drop in the layer tree couldn't be undone. With this patch an undo step is pushed when the layer order changes via drag-and-drop, so the action can be undone. Pull Request: https://projects.blender.org/blender/blender/pulls/138214