Simplified comparable_cdl, removed need for attribute sorting.