Better sorting of stores for get_courses
May apply to all store ordering