Coding should include the sort: arranging the components of an array in ascending or descending order. The search should examine the first element in a list and proceed to examine the elements in the order in which they appear until a match is found.