[INV-414] Order search results

@clicktravel-craig Ready for review. thanks J
Replace while with:

for(SortingOption sortingOption : sortOrder.sortingOptions()) {
...
}