secondary sort popularity lists by full title

This commit is contained in:
Glenn Maynard
2005-03-12 03:18:11 +00:00
parent 88f29c9853
commit 0d7c61faae
3 changed files with 8 additions and 0 deletions
+5
View File
@@ -143,6 +143,11 @@ bool CompareCoursePointersByTitle( const Course *pCourse1, const Course *pCourse
return CompareCoursePointersByName( pCourse1, pCourse2 );
}
void CourseUtil::SortCoursePointerArrayByTitle( vector<Course*> &apCourses )
{
sort( apCourses.begin(), apCourses.end(), CompareCoursePointersByTitle );
}
void CourseUtil::SortCoursePointerArrayByAvgDifficulty( vector<Course*> &apCourses )
{
RageTimer foo;