What determines the order in which classes display in the portal?

By default, the order of class display in the portal as well as academic documents is determined by the sort key on the Subject. The Subject List query is located under Academics on the System homepage. 

If you are looking to update the logic that dictates the order in which classes appear on academic documents, please submit a ticket through the client support portal.