Intermediates are now sorted according to rank.