MOBILE-2687 courses: Fix course sorting

main
Pau Ferrer Ocaña 2019-01-02 11:49:09 +01:00
parent 11babee5fe
commit 35a4d6d3a2
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: