Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
return apartment type codes ;return apartments  with #1 ;return number of  #2 for each  #1 ;return #1 ,  #3 ;return #4 sorted by #3 in ascending order
['select', 'project', 'group', 'union', 'sort']