mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
update sorting
This commit is contained in:
parent
cf35773d82
commit
66d0815fc6
2 changed files with 6 additions and 6 deletions
|
@ -494,11 +494,6 @@ namespace MediaBrowser.Controller.Entities
|
|||
{
|
||||
get
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(ForcedSortName))
|
||||
{
|
||||
return ForcedSortName;
|
||||
}
|
||||
|
||||
return _sortName ?? (_sortName = CreateSortName());
|
||||
}
|
||||
set
|
||||
|
@ -534,6 +529,11 @@ namespace MediaBrowser.Controller.Entities
|
|||
/// <returns>System.String.</returns>
|
||||
protected virtual string CreateSortName()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(ForcedSortName))
|
||||
{
|
||||
return ModifySortChunks(ForcedSortName);
|
||||
}
|
||||
|
||||
if (Name == null) return null; //some items may not have name filled in properly
|
||||
|
||||
if (!EnableAlphaNumericSorting)
|
||||
|
|
|
@ -79,7 +79,7 @@ namespace MediaBrowser.Server.Implementations.Persistence
|
|||
|
||||
private IDbCommand _updateInheritedRatingCommand;
|
||||
|
||||
private const int LatestSchemaVersion = 50;
|
||||
private const int LatestSchemaVersion = 51;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SqliteItemRepository"/> class.
|
||||
|
|
Loading…
Reference in a new issue