adding exporting for printing and ordering by end dates for control charts