Apply code review suggestion
This commit is contained in:
parent
d1670f8180
commit
376bbb40bd
|
@ -7,7 +7,7 @@ namespace MediaBrowser.Controller.Sorting
|
|||
{
|
||||
public static class SortExtensions
|
||||
{
|
||||
private static IComparer<string> _comparer = new AlphanumComparator();
|
||||
private static readonly AlphanumComparator _comparer = new AlphanumComparator();
|
||||
public static IEnumerable<T> OrderByString<T>(this IEnumerable<T> list, Func<T, string> getName)
|
||||
{
|
||||
return list.OrderBy(getName, _comparer);
|
||||
|
|
Loading…
Reference in New Issue
Block a user