Commented up to sorting items in the results array