Skip to content

Commit

Permalink
UI
Browse files Browse the repository at this point in the history
  • Loading branch information
IvenBach committed Nov 23, 2017
1 parent b882a9b commit 55aac18
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions RetailCoder.VBE/UI/GridViewSort.cs
Expand Up @@ -21,12 +21,10 @@ public IEnumerable<T> Sort(IEnumerable<T> items, string columnName)
SortedAscending = false;
return items.OrderByDescending(x => x.GetType().GetProperty(columnName).GetValue(x));
}
else
{
ColumnName = columnName;
SortedAscending = true;
return items.OrderBy(x => x.GetType().GetProperty(columnName).GetValue(x));
}

ColumnName = columnName;
SortedAscending = true;
return items.OrderBy(x => x.GetType().GetProperty(columnName).GetValue(x));
}

public IEnumerable<T> Sort(IEnumerable<T> items, string columnName, bool sortAscending)
Expand Down

0 comments on commit 55aac18

Please sign in to comment.