Reformat and sort dependencies