Changed print_times to allow the categories to be sorted alphabetically.
Changed display_times to use the alphabetical sort.