From 84c75fadf5f4481c8a356f284c1f068c710d88eb Mon Sep 17 00:00:00 2001 From: Tahvohck Date: Wed, 5 Aug 2020 22:38:12 -0400 Subject: [PATCH] Sort code for PathID (change to numeric) (#550) * Sort code for PathID (change to numeric) * Remove comments (were only for reference) * Match Perfare formatting --- AssetStudioGUI/AssetStudioGUIForm.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/AssetStudioGUI/AssetStudioGUIForm.cs b/AssetStudioGUI/AssetStudioGUIForm.cs index 27fb77e..aca3dba 100644 --- a/AssetStudioGUI/AssetStudioGUIForm.cs +++ b/AssetStudioGUI/AssetStudioGUIForm.cs @@ -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) =>