Implement Z-Order support in ding