Sort code for PathID (change to numeric) (#550)

* Sort code for PathID (change to numeric)

* Remove comments (were only for reference)

* Match Perfare formatting
This commit is contained in:
Tahvohck 2020-08-05 22:38:12 -04:00 committed by GitHub
parent c76e41b1ab
commit 84c75fadf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -564,6 +564,15 @@ namespace AssetStudioGUI
return reverseSort ? bsf.CompareTo(asf) : asf.CompareTo(bsf);
});
}
else if (sortColumn == 3) // PathID
{
visibleAssets.Sort((x, y) =>
{
long pathID_X = x.m_PathID;
long pathID_Y = y.m_PathID;
return reverseSort ? pathID_Y.CompareTo(pathID_X) : pathID_X.CompareTo(pathID_Y);
});
}
else
{
visibleAssets.Sort((a, b) =>