Show correct dialog when generating hierarchies for ordered strings