Fix #1806852: sort PasteCanvas layers by z-depth even if they do have a non-zero...