Sort: refactor profiling approach

clo_sort_*_sort functions now receive a GArray* for adding
events if profiling is on. There is no need for the create
and free events functions, so they were removed.