You need to click the column header to trigger sorting on. When you click, you see the tasks reordered and see the arrow which indicates sorting close to the mouse pointer. Undo works fine and reverts tasks reordering.
All that said, I agree that one can accidentally click the header and miss the changes. We'll think what we can do with that.