List<String> sortedPostContent = foundUser.posts.collect { it.content }.sort() #2
[...]
sortedPostContent == ['First', 'Second', 'Third'] #3
[...]
#2 Iterates through User’s posts
#3 Sorts posts alphabetically
[...]
for our test case we sort them alphabetically to make the comparison meaningful #3
Suggestion :
#2 Iterates through User’s posts and sort them alphabetically
#3 Compare retrieved values to known values
[...]
for our test case we sort them alphabetically to make the comparison meaningful #2
From this post on the Manning forums, current:
Suggestion :