Depth ordering finished

Depth ordering among subpatches within a patch was finished.