New: Optionally display authors as LastName, FirstName in index

Fixes #1062
This commit is contained in:
ta264
2021-07-21 21:50:17 +01:00
parent 332997aefe
commit 7f8dc3d2b4
28 changed files with 193 additions and 54 deletions
@@ -275,7 +275,7 @@ namespace NzbDrone.Common.Extensions
return new string(buf.ToArray());
}
public static string ToSortName(this string author)
public static string ToLastFirst(this string author)
{
// ported from https://github.com/kovidgoyal/calibre/blob/master/src/calibre/ebooks/metadata/__init__.py
if (author == null)