mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-30 20:28:35 +01:00
parent
3c2a74fe7f
commit
35e14eab72
1 changed files with 4 additions and 3 deletions
|
|
@ -3,6 +3,7 @@
|
|||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Reflection;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
namespace NzbDrone.Core.Datastore
|
||||
{
|
||||
|
|
@ -100,7 +101,7 @@ public string GetSortKey(string sortKey)
|
|||
var split = sortKey.Split('.');
|
||||
if (split.Length != 2)
|
||||
{
|
||||
return sortKey;
|
||||
return sortKey.FirstCharToUpper();
|
||||
}
|
||||
|
||||
table = split[0];
|
||||
|
|
@ -109,12 +110,12 @@ public string GetSortKey(string sortKey)
|
|||
|
||||
if (table != null && !TableMap.Values.Contains(table, StringComparer.OrdinalIgnoreCase))
|
||||
{
|
||||
return sortKey;
|
||||
return sortKey.FirstCharToUpper();
|
||||
}
|
||||
|
||||
if (!_allowedOrderBy.Contains(sortKey))
|
||||
{
|
||||
return sortKey;
|
||||
return sortKey.FirstCharToUpper();
|
||||
}
|
||||
|
||||
return _allowedOrderBy.First(x => x.Equals(sortKey, StringComparison.OrdinalIgnoreCase));
|
||||
|
|
|
|||
Loading…
Reference in a new issue