Method for getting sorted course providers
Generincs, fixes, code optimizations