Sort by cost before sorting by name in builder