Rename sort() to compute_sort() to avoid naming conflicts