diff --git a/scanner/mapping.go b/scanner/mapping.go index bcb8fa6d4..bcc63a7ae 100644 --- a/scanner/mapping.go +++ b/scanner/mapping.go @@ -60,9 +60,8 @@ func (s *mediaFileMapper) toMediaFile(md *Metadata) model.MediaFile { } func sanitizeFieldForSorting(originalValue string) string { - v := utils.NoArticle(originalValue) - v = strings.TrimSpace(sanitize.Accents(v)) - return v + v := strings.TrimSpace(sanitize.Accents(originalValue)) + return utils.NoArticle(v) } func (s *mediaFileMapper) mapTrackTitle(md *Metadata) string {