reimplemented sortedAvailableCohorts since sort() can't handle promises.
reimplemented sortedAvailableCohorts since sort() can't handle promises.

gboushey/frontend,jrjohnson/frontend,ilios/frontend,dartajax/frontend,djvoa12/frontend,thecoolestguy/frontend,gboushey/frontend,ilios/frontend,jrjohnson/frontend,gabycampagna/frontend,djvoa12/frontend,gabycampagna/frontend,thecoolestguy/frontend,dartajax/frontend