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).
Ah, that makes sense. I think you can make this easier to understand by doing `((Number) element).longValue()` then