Oops - reverse sorting for Ram Watch

This commit is contained in:
andres.delikat 2011-06-19 19:20:43 +00:00
parent 5e27953db0
commit 42e22b63be
1 changed files with 3 additions and 3 deletions

View File

@ -1389,9 +1389,9 @@ namespace BizHawk.MultiClient
string columnName = WatchListView.Columns[columnToOrder].Text;
if (sortedCol.CompareTo(columnName) != 0)
sortReverse = false;
watchList.Sort((x, y) => x.CompareTo(y, columnName));//* (sortReverse ? -1 : 1));
//sortedCol = columnName;
//sortReverse = !(sortReverse);
watchList.Sort((x, y) => x.CompareTo(y, columnName) * (sortReverse ? -1 : 1));
sortedCol = columnName;
sortReverse = !(sortReverse);
WatchListView.Refresh();
}