sort teaching load by semester and code