From b7ec42ee4ecd91460cd73787f27e30e78a95dc5d Mon Sep 17 00:00:00 2001
From: Akash Mozumdar <akashmozumdar@gmail.com>
Date: Sat, 2 Feb 2019 16:50:28 -0500
Subject: [PATCH] process list in order of last used

---
 GUI/mainwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/GUI/mainwindow.cpp b/GUI/mainwindow.cpp
index 4582feb..a4d9fee 100644
--- a/GUI/mainwindow.cpp
+++ b/GUI/mainwindow.cpp
@@ -214,7 +214,7 @@ void MainWindow::LaunchProcess()
 {
 	QStringList savedProcesses = QString::fromUtf8(QTextFile(GAME_SAVE_FILE, QIODevice::ReadOnly).readAll()).split("\n", QString::SkipEmptyParts);
 	savedProcesses.removeDuplicates();
-	savedProcesses.sort(Qt::CaseInsensitive);
+	std::reverse(savedProcesses.begin(), savedProcesses.end());
 	savedProcesses.push_back(SEARCH_GAME);
 	std::wstring process = S(QInputDialog::getItem(this, SELECT_PROCESS, "", savedProcesses, 0, true, &ok, Qt::WindowCloseButtonHint));
 	if (!ok) return;