Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/blame/commit/b89565110d320756e46f2d157c06ab806c3b1756/MediaBrowser.Controller/Sorting/SortExtensions.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
jellyfin/MediaBrowser.Controller/Sorting/SortExtensions.cs

31 lines
1.0 KiB

using System;
6 years ago
using System.Collections.Generic;
using System.Linq;
namespace MediaBrowser.Controller.Sorting
{
public static class SortExtensions
{
private static readonly AlphanumComparator _comparer = new AlphanumComparator();
6 years ago
public static IEnumerable<T> OrderByString<T>(this IEnumerable<T> list, Func<T, string> getName)
{
return list.OrderBy(getName, _comparer);
6 years ago
}
public static IEnumerable<T> OrderByStringDescending<T>(this IEnumerable<T> list, Func<T, string> getName)
{
return list.OrderByDescending(getName, _comparer);
6 years ago
}
public static IOrderedEnumerable<T> ThenByString<T>(this IOrderedEnumerable<T> list, Func<T, string> getName)
{
return list.ThenBy(getName, _comparer);
6 years ago
}
public static IOrderedEnumerable<T> ThenByStringDescending<T>(this IOrderedEnumerable<T> list, Func<T, string> getName)
{
return list.ThenByDescending(getName, _comparer);
6 years ago
}
}
}