Use local-aware compare in VDS file name sort (#5588)

This commit is contained in:
RickyRister 2025-02-08 20:38:48 -08:00 committed by GitHub
parent 79bf3adb2a
commit 86161185d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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: {