Split the bigrams in two, then sort and combine the parts.