Skip to content

Commit a6e0a5a

Browse files
authored
Move OrderBy after Where (#7103)
1 parent b4d9b25 commit a6e0a5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Files/ViewModels/Properties/FileProperties.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ public async void GetSystemFileProperties()
179179
.Where(fileProp => !(fileProp.Value == null && fileProp.IsReadOnly))
180180
.GroupBy(fileProp => fileProp.SectionResource)
181181
.Select(group => new FilePropertySection(group) { Key = group.Key })
182-
.OrderBy(group => group.Priority)
183-
.Where(section => !section.All(fileProp => fileProp.Value == null));
182+
.Where(section => !section.All(fileProp => fileProp.Value == null))
183+
.OrderBy(group => group.Priority);
184184
ViewModel.PropertySections = new ObservableCollection<FilePropertySection>(query);
185185
ViewModel.FileProperties = new ObservableCollection<FileProperty>(list.Where(i => i.Value != null));
186186
}

0 commit comments

Comments
 (0)