Use local-aware compare in VDS file name sort

This commit is contained in:
RickyRister 2025-02-08 20:08:57 -08:00
parent 07ca243d48
commit e667da54e0

View file

@ -95,7 +95,7 @@ QList<DeckPreviewWidget *> VisualDeckStorageSortWidget::filterFiles(QList<DeckPr
case ByName:
return widget1->deckLoader->getName() < widget2->deckLoader->getName();
case Alphabetical:
return info1.fileName().toLower() < info2.fileName().toLower();
return QString::localeAwareCompare(info1.fileName(), info2.fileName()) <= 0;
case ByLastModified:
return info1.lastModified() > info2.lastModified();
case ByLastLoaded: {