Move FindAudiobooks() to AudioFileStorage

This commit is contained in:
Mbucari 2023-02-10 14:53:12 -07:00
parent 1f4ada604a
commit 56823c1105
5 changed files with 54 additions and 66 deletions

View file

@ -278,9 +278,9 @@ namespace LibationFileManager
var sortedNames
= sortMatch.Success
? (
sortMatch.Groups[1].Value.ToUpper() == "F" ? names.OrderBy(n => n.First)
: sortMatch.Groups[1].Value.ToUpper() == "M" ? names.OrderBy(n => n.Middle)
: sortMatch.Groups[1].Value.ToUpper() == "L" ? names.OrderBy(n => n.Last)
sortMatch.Groups[1].Value == "F" ? names.OrderBy(n => n.First)
: sortMatch.Groups[1].Value == "M" ? names.OrderBy(n => n.Middle)
: sortMatch.Groups[1].Value == "L" ? names.OrderBy(n => n.Last)
: names
)
: names;