From 8bfde9696698233fa9f01cc297dce491123bea60 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Tue, 5 Nov 2013 20:31:52 -0600 Subject: [PATCH] Added missing sorts. --- src/FileSorts.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/FileSorts.cpp b/src/FileSorts.cpp index 5f5b02085..b985c0ae6 100644 --- a/src/FileSorts.cpp +++ b/src/FileSorts.cpp @@ -3,7 +3,17 @@ namespace FileSorts { const FileData::SortType typesArr[] = { - FileData::SortType(&compareFileName, true, "file name, ascending") + FileData::SortType(&compareFileName, true, "filename, ascending"), + FileData::SortType(&compareFileName, false, "filename, descending"), + + FileData::SortType(&compareRating, true, "rating, ascending"), + FileData::SortType(&compareRating, false, "rating, descending"), + + FileData::SortType(&compareTimesPlayed, true, "times played, ascending"), + FileData::SortType(&compareTimesPlayed, false, "times played, descending"), + + FileData::SortType(&compareLastPlayed, true, "last played, ascending"), + FileData::SortType(&compareLastPlayed, false, "last played, descending") }; const std::vector SortTypes(typesArr, typesArr + sizeof(typesArr)/sizeof(typesArr[0]));