Working if dialogues are sorted from first to last to appear