diff --git a/mythtv/programs/mythfrontend/videolist.cpp b/mythtv/programs/mythfrontend/videolist.cpp index 7bcbda0..fdebf1a 100644 --- a/mythtv/programs/mythfrontend/videolist.cpp +++ b/mythtv/programs/mythfrontend/videolist.cpp @@ -195,8 +195,10 @@ struct metadata_path_sort bool sort(const QString &lhs, const QString &rhs) { - QString lhs_comp(lhs); - QString rhs_comp(rhs); + const QRegExp prefixes = + QRegExp(QObject::tr("^(The |A |An )"), Qt::CaseInsensitive); + QString lhs_comp = QString(lhs).remove(prefixes); + QString rhs_comp = QString(rhs).remove(prefixes); if (m_ignore_case) { lhs_comp = lhs_comp.toLower();