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