Task: Sentence Ordering
Input (English): Sentence1: As a result, he had to find other work. Sentence2: John was a troubled worker. Sentence3: He worked in a factory. Sentence4: There once was a man named John. Sentence5: The factory fired him for poor work.
Output (English): 45213