mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Apply code review suggestion
This commit is contained in:
parent
d1670f8180
commit
376bbb40bd
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ namespace MediaBrowser.Controller.Sorting
|
||||||
{
|
{
|
||||||
public static class SortExtensions
|
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)
|
public static IEnumerable<T> OrderByString<T>(this IEnumerable<T> list, Func<T, string> getName)
|
||||||
{
|
{
|
||||||
return list.OrderBy(getName, _comparer);
|
return list.OrderBy(getName, _comparer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue