public void SortSubFolders(SortAction sortAction, ref PGFolderComparer defaultcomparer) { PGFolderComparer comparer = PGFolderComparer.GetComparerBySortAction(sortAction, defaultcomparer); SubFolders.Sort(comparer); defaultcomparer = comparer; }