import { Course } from '../model/course' ; import { COURSES } from '../../../../server/db-data' ; import { sortCoursesBySeqNo } from '../home/sort-course-by-seq' ; export function setupCourses ( ) { return Object . values ( COURSES ) . sort ( sortCoursesBySeqNo ) as Course [ ] ; }