Sorted course arrays that are sent to views