Find only needs to take one map structure containing the values to be matched. An array of maps not only is unnecessary but it also wouldn't work (for example inserting multiple records). 

Sorter is a string that we pass into the search function that denotes according to which column we want the results to be sorted. Returning sorted results allows us to group them together; in a different case the are presented in the order they were stored into mongodb.