Completed smallest value of an array challenge. Codewars 7 kyu.
Added a variance of sortBy for an array of objects.