Modify responses for some endpoints

Use compare function to sort comments by creation date when getting a poem by id.