Merge pull request #1699 from crazyserver/MOBILE-2687-2

MOBILE-2687 courses: Fix course sorting
main
Juan Leyva 2019-01-02 12:17:33 +01:00 committed by GitHub
commit e9884e82c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -137,12 +137,12 @@ export class CoreCoursesHelperProvider {
break;
case 'lastaccess':
courses.sort((a, b) => {
return b.lastaccess - b.lastaccess;
return b.lastaccess - a.lastaccess;
});
break;
case 'timemodified':
courses.sort((a, b) => {
return b.timemodified - b.timemodified;
return b.timemodified - a.timemodified;
});
break;
default: