sorted the output of story 5