From 848cb582d97e03483edbe779ad4ed978db84ec61 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 15 Jun 2005 02:02:06 +0000 Subject: [PATCH] sort by name first when showing only most recent --- stepmania/src/ScreenRanking.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/ScreenRanking.cpp b/stepmania/src/ScreenRanking.cpp index 62e43afa49..f130bb8ade 100644 --- a/stepmania/src/ScreenRanking.cpp +++ b/stepmania/src/ScreenRanking.cpp @@ -63,6 +63,7 @@ static void GetAllSongsToShow( vector &vpOut, bool bShowOnlyMostRecentSco if( bShowOnlyMostRecentScores ) { + SongUtil::SortSongPointerArrayByTitle( vpOut ); SongUtil::SortByMostRecentlyPlayedForMachine( vpOut ); if( (int) vpOut.size() > iNumMostRecentScoresToShow ) vpOut.erase( vpOut.begin()+iNumMostRecentScoresToShow, vpOut.end() ); @@ -85,6 +86,7 @@ static void GetAllCoursesToShow( vector &vpOut, CourseType ct, bool bSh } if( bShowOnlyMostRecentScores ) { + CourseUtil::SortCoursePointerArrayByTitle( vpOut ); CourseUtil::SortByMostRecentlyPlayedForMachine( vpOut ); if( (int) vpOut.size() > iNumMostRecentScoresToShow ) vpOut.erase( vpOut.begin()+iNumMostRecentScoresToShow, vpOut.end() );