MOState courses sorting utility