local/o365/classes/page/acp.php [597:613]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (empty($search)) {
            $sortdir = 1;
            if ($sortdir == 'desc') {
                $sortdir = -1;
            }
            $options = [
                'recursive' => true,
                'sort' => [$sort => $sortdir],
                'offset' => $limitfrom,
                'limit' => $perpage,
            ];
            $topcat = \core_course_category::get(0);
            $courses = $topcat->get_courses($options);
            $totalcount = $topcat->get_courses_count($options);
        } else {
            $searchar = explode(' ', $search);
            $courses = get_courses_search($searchar, 'c.'.$sort.' '.$sortdir, $curpage, $perpage, $totalcount);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



local/o365/classes/page/acp.php [1702:1718]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if (empty($search)) {
            $sortdir = 1;
            if ($sortdir == 'desc') {
                $sortdir = -1;
            }
            $options = [
                'recursive' => true,
                'sort' => [$sort => $sortdir],
                'offset' => $limitfrom,
                'limit' => $perpage,
            ];
            $topcat = \core_course_category::get(0);
            $courses = $topcat->get_courses($options);
            $totalcount = $topcat->get_courses_count($options);
        } else {
            $searchar = explode(' ', $search);
            $courses = get_courses_search($searchar, 'c.'.$sort.' '.$sortdir, $curpage, $perpage, $totalcount);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



