update sorting

This commit is contained in:
Luke Pulverenti 2016-03-24 16:52:52 -04:00
parent cf35773d82
commit 66d0815fc6
2 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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.