diff options
Diffstat (limited to 'src/base_tab/GameListManager.cpp')
| -rw-r--r-- | src/base_tab/GameListManager.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/base_tab/GameListManager.cpp b/src/base_tab/GameListManager.cpp index 3da6dc2..971e486 100644 --- a/src/base_tab/GameListManager.cpp +++ b/src/base_tab/GameListManager.cpp @@ -74,6 +74,21 @@ void GameListManager::SortBy(short col){ case 1: std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.White < b.White);}); break; + case 2: + std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.Black < b.Black);}); + break; + case 3: + std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.Event < b.Event);}); + break; + case 4: + std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.Round < b.Round);}); + break; + case 5: + std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.Result < b.Result);}); + break; + case 6: + std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.Eco < b.Eco);}); + break; default: std::sort(rows.begin(),rows.end(), [&](RType a, RType b){return(a.id < b.id);}); } |
