indent and sort attributes for comparison