Merge pull request #1699 from crazyserver/MOBILE-2687-2
MOBILE-2687 courses: Fix course sorting
This commit is contained in:
		
						commit
						e9884e82c6
					
				| @ -137,12 +137,12 @@ export class CoreCoursesHelperProvider { | |||||||
|                         break; |                         break; | ||||||
|                     case 'lastaccess': |                     case 'lastaccess': | ||||||
|                         courses.sort((a, b) => { |                         courses.sort((a, b) => { | ||||||
|                             return b.lastaccess - b.lastaccess; |                             return b.lastaccess - a.lastaccess; | ||||||
|                         }); |                         }); | ||||||
|                         break; |                         break; | ||||||
|                     case 'timemodified': |                     case 'timemodified': | ||||||
|                         courses.sort((a, b) => { |                         courses.sort((a, b) => { | ||||||
|                             return b.timemodified - b.timemodified; |                             return b.timemodified - a.timemodified; | ||||||
|                         }); |                         }); | ||||||
|                         break; |                         break; | ||||||
|                     default: |                     default: | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user