Sorting and joining of economy codes