Refactor #10038 added sorting when viewing children documents