Get rid of parent attributes for sorting