Add sum_and_sort script