Add: Comparator and redoUndo