Revert to tree sorting when an order attribute is not available