In what order did Sophocles write his three Theban tragedies?

Antigone was produced on stage first (441 B.C.), followed by Oedipus the King (c. 426 B.C.) and Oedipus at Colonus (first produced after the author’s death in 405 B.C.).

However, the story recounted by the plays follows a different order: Oedipus the King first; Oedipus at Colonus second; Antigone last.