diff --git a/Source/Editor/Content/GUI/ContentView.cs b/Source/Editor/Content/GUI/ContentView.cs
index 0401e14a6..23d81421d 100644
--- a/Source/Editor/Content/GUI/ContentView.cs
+++ b/Source/Editor/Content/GUI/ContentView.cs
@@ -30,7 +30,7 @@ namespace FlaxEditor.Content.GUI
///
/// The method sort for items.
///
- public enum MethodSort
+ public enum SortType
{
///
/// The classic alphabetic sort method (A-Z).
@@ -234,9 +234,9 @@ namespace FlaxEditor.Content.GUI
/// Shows the items collection in the view.
///
/// The items to show.
- /// The sort method for items.
+ /// The sort method for items.
/// If set to true items will be added to the current selection. Otherwise selection will be cleared before.
- public void ShowItems(List items, MethodSort sortMethod, bool additive = false)
+ public void ShowItems(List items, SortType sortType, bool additive = false)
{
if (items == null)
throw new ArgumentNullException();
@@ -269,7 +269,7 @@ namespace FlaxEditor.Content.GUI
// Sort items depending on sortMethod parameter
_children.Sort(((control, control1) =>
{
- if (sortMethod == MethodSort.AlphabeticReverse)
+ if (sortType == SortType.AlphabeticReverse)
{
if (control.CompareTo(control1) > 0)
{
diff --git a/Source/Editor/Windows/ContentWindow.Search.cs b/Source/Editor/Windows/ContentWindow.Search.cs
index b89bfff89..d8c304c23 100644
--- a/Source/Editor/Windows/ContentWindow.Search.cs
+++ b/Source/Editor/Windows/ContentWindow.Search.cs
@@ -230,7 +230,7 @@ namespace FlaxEditor.Windows
}
_view.IsSearching = true;
- _view.ShowItems(items, Editor.Windows.ContentWin._sortBy);
+ _view.ShowItems(items, Editor.Windows.ContentWin._sortType);
}
private void UpdateItemsSearchFilter(ContentFolder folder, List items, bool[] filters)
diff --git a/Source/Editor/Windows/ContentWindow.cs b/Source/Editor/Windows/ContentWindow.cs
index 9985393ef..332e9331f 100644
--- a/Source/Editor/Windows/ContentWindow.cs
+++ b/Source/Editor/Windows/ContentWindow.cs
@@ -39,7 +39,7 @@ namespace FlaxEditor.Windows
private TextBox _foldersSearchBox;
private TextBox _itemsSearchBox;
private ViewDropdown _viewDropdown;
- private MethodSort _sortBy;
+ private SortType _sortType;
private RootContentTreeNode _root;
@@ -239,9 +239,9 @@ namespace FlaxEditor.Windows
{
switch (button.Text)
{
- case "Alphabetic Order": Editor.Windows.ContentWin._sortBy = MethodSort.AlphabeticOrder;
+ case "Alphabetic Order": Editor.Windows.ContentWin._sortType = SortType.AlphabeticOrder;
break;
- case "Alphabetic Reverse": Editor.Windows.ContentWin._sortBy = MethodSort.AlphabeticReverse;
+ case "Alphabetic Reverse": Editor.Windows.ContentWin._sortType = SortType.AlphabeticReverse;
break;
}
RefreshView(SelectedNode);
@@ -718,12 +718,12 @@ namespace FlaxEditor.Windows
items.Add(node.Folder);
}
}
- _view.ShowItems(items, Editor.Windows.ContentWin._sortBy);
+ _view.ShowItems(items, Editor.Windows.ContentWin._sortType);
}
else
{
// Show folder contents
- _view.ShowItems(target.Folder.Children, Editor.Windows.ContentWin._sortBy);
+ _view.ShowItems(target.Folder.Children, Editor.Windows.ContentWin._sortType);
}
}