change-log: fix group handling

We did the ordering wrong. Add a tests and swap the traversal order for undo/redo.