Skip to content

Commit 6216253

Browse files
Treat Property Let, Get, and Set equally. This should group them together and close #3340
1 parent 02982ea commit 6216253

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

RetailCoder.VBE/Navigation/CodeExplorer/CodeExplorerItemViewModel.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ public class CompareByType : Comparer<CodeExplorerItemViewModel>
3131
{
3232
private static readonly Dictionary<DeclarationType, int> SortOrder = new Dictionary<DeclarationType, int>
3333
{
34-
// Some DeclarationTypes we want to treat the same, like Subs and Functions.
34+
// Some DeclarationTypes we want to treat the same, like Subs and Functions,
35+
// or Property Gets, Lets, and Sets.
3536
// Give them the same number.
3637
{DeclarationType.LibraryFunction, 0},
3738
{DeclarationType.LibraryProcedure, 0},
@@ -41,10 +42,10 @@ public class CompareByType : Comparer<CodeExplorerItemViewModel>
4142
{DeclarationType.Constant, 4},
4243
{DeclarationType.Variable, 5},
4344
{DeclarationType.PropertyGet, 6},
44-
{DeclarationType.PropertyLet, 7},
45-
{DeclarationType.PropertySet, 8},
46-
{DeclarationType.Function, 9},
47-
{DeclarationType.Procedure, 9}
45+
{DeclarationType.PropertyLet, 6},
46+
{DeclarationType.PropertySet, 6},
47+
{DeclarationType.Function, 7},
48+
{DeclarationType.Procedure, 7}
4849
};
4950

5051
public override int Compare(CodeExplorerItemViewModel x, CodeExplorerItemViewModel y)

0 commit comments

Comments
 (0)