Sorts the elements by comparing with the specified compare function. The sort is stable.
compare function to compare elements. if it is not specified, the result of Gee.Functions.get_compare_func_for is used