How to list completed todos sorted by completion time?

the task:stateChange event doesn’t get triggered and the completed attribute isn’t added. Is there a way to fix this?

This will solve this issue - it’s a little surgical approach…BUT IT WORKS!