They are sorted with length_comperator . 
I had checked iterator assertions breaking cucumber test on this, indicating that one of the vector was not actually sorted. 

Maybe the code itself could be changed, avoiding this double-sorting.