order accounts on course settings page in db
order accounts on course settings page in db

fixes "comparison of NilClass with String failed"
occasional failures in specs

refs #CNVS-19842

Change-Id: I39438055873da8bd0572eeb1d5cb49819fae69f5
Reviewed-on: https://gerrit.instructure.com/52344
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <2591e5f46f28d303f9dc027d475a5c60d8dea17a@instructure.com>
Product-Review: Dan Minkevitch <2591e5f46f28d303f9dc027d475a5c60d8dea17a@instructure.com>
QA-Review: James Williams  <3a5f4ed991dbfa5c9ef76ad729d240ca12f62180@instructure.com>

fronteerio/canvas-lms,redconfetti/canvas-lms,eCNAP/CANVAS,instructure/canvas-lms,wrdsb/canvas-lms,roxolan/canvas-lms,dgynn/canvas-lms,AndranikMarkosyan/lms,redconfetti/canvas-lms,grahamb/canvas-lms,matematikk-mooc/canvas-lms,dgynn/canvas-lms,HotChalk/canvas-lms,tgroshon/canvas-lms,tgroshon/canvas-lms,tgroshon/canvas-lms,fronteerio/canvas-lms,SwinburneOnline/canvas-lms,snehakachroo1/LSI_replica,instructure/canvas-lms,redconfetti/canvas-lms,AndranikMarkosyan/lms,wrdsb/canvas-lms,efrj/canvas-lms,greyhwndz/canvas-lms,jay3126/canvas-lms,venturehive/canvas-lms,ShreniiNepal/shrenii_lmp,matematikk-mooc/canvas-lms,tgroshon/canvas-lms,kyroskoh/canvas-lms,utkarshx/canvas-lms,juoni/canvas-lms,juoni/canvas-lms,djbender/canvas-lms,venturehive/canvas-lms,whalejasmine/canvas-lms,antoniuslin/canvas-lms,jay3126/canvas-lms,skmezanul/canvas-lms,utkarshx/canvas-lms,greyhwndz/canvas-lms,instructure/canvas-lms,Jyaasa/canvas-lms,skmezanul/canvas-lms,sdeleon28/canvas-lms,utkarshx/canvas-lms,sfu/canvas-lms,grahamb/canvas-lms,efrj/canvas-lms,ShreniiNepal/shrenii_lmp,shidao-fm/canvas-lms,fronteerio/canvas-lms,whalejasmine/canvas-lms,antoniuslin/canvas-lms,HotChalk/canvas-lms,kyroskoh/canvas-lms,grahamb/canvas-lms,antoniuslin/canvas-lms,grahamb/canvas-lms,skmezanul/canvas-lms,Jyaasa/canvas-lms,skmezanul/canvas-lms,AndranikMarkosyan/lms,va7map/canvas-lms,instructure/canvas-lms,shidao-fm/canvas-lms,sfu/canvas-lms,SwinburneOnline/canvas-lms,Rvor/canvas-lms,sfu/canvas-lms,leftplusrightllc/canvas-lms,Jyaasa/canvas-lms,djbender/canvas-lms,narigone/canvas,eCNAP/CANVAS,venturehive/canvas-lms,Rvor/canvas-lms,va7map/canvas-lms,Rvor/canvas-lms,narigone/canvas,antoniuslin/canvas-lms,shidao-fm/canvas-lms,instructure/canvas-lms,va7map/canvas-lms,instructure/canvas-lms,sfu/canvas-lms,kyroskoh/canvas-lms,utkarshx/canvas-lms,redconfetti/canvas-lms,leftplusrightllc/canvas-lms,matematikk-mooc/canvas-lms,sfu/canvas-lms,whalejasmine/canvas-lms,dgynn/canvas-lms,SwinburneOnline/canvas-lms,Jyaasa/canvas-lms,juoni/canvas-lms,wrdsb/canvas-lms,instructure/canvas-lms,eCNAP/CANVAS,roxolan/canvas-lms,greyhwndz/canvas-lms,wrdsb/canvas-lms,snehakachroo1/LSI_replica,sfu/canvas-lms,roxolan/canvas-lms,ShreniiNepal/shrenii_lmp,narigone/canvas,efrj/canvas-lms,sdeleon28/canvas-lms,jay3126/canvas-lms,whalejasmine/canvas-lms,ShreniiNepal/shrenii_lmp,kyroskoh/canvas-lms,narigone/canvas,efrj/canvas-lms,matematikk-mooc/canvas-lms,djbender/canvas-lms,va7map/canvas-lms,HotChalk/canvas-lms,sdeleon28/canvas-lms,snehakachroo1/LSI_replica,djbender/canvas-lms,sfu/canvas-lms,roxolan/canvas-lms,leftplusrightllc/canvas-lms,eCNAP/CANVAS,venturehive/canvas-lms,HotChalk/canvas-lms,dgynn/canvas-lms,snehakachroo1/LSI_replica,jay3126/canvas-lms,fronteerio/canvas-lms,greyhwndz/canvas-lms,sdeleon28/canvas-lms,shidao-fm/canvas-lms,juoni/canvas-lms,AndranikMarkosyan/lms,grahamb/canvas-lms,leftplusrightllc/canvas-lms,Rvor/canvas-lms,SwinburneOnline/canvas-lms