Add sort_array function

This PR adds Hive's ``sort_array`` function that sorts the given array in ascending order according to the natural ordering of its elements (only if the array elements are Comparable).
is there a case where you need the parseLong() code path? if javaType == long.class, element should always be a Long