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