mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
Sort DAT files by name.
This commit is contained in:
@@ -233,7 +233,7 @@ namespace RomRepoMgr.ViewModels
|
|||||||
{
|
{
|
||||||
_datFiles = Directory.GetFiles(FolderPath, "*.*",
|
_datFiles = Directory.GetFiles(FolderPath, "*.*",
|
||||||
_recursiveChecked ? SearchOption.AllDirectories
|
_recursiveChecked ? SearchOption.AllDirectories
|
||||||
: SearchOption.TopDirectoryOnly);
|
: SearchOption.TopDirectoryOnly).OrderBy(f => f).ToArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -245,7 +245,7 @@ namespace RomRepoMgr.ViewModels
|
|||||||
_recursiveChecked ? SearchOption.AllDirectories
|
_recursiveChecked ? SearchOption.AllDirectories
|
||||||
: SearchOption.TopDirectoryOnly);
|
: SearchOption.TopDirectoryOnly);
|
||||||
|
|
||||||
_datFiles = dats.Concat(xmls).ToArray();
|
_datFiles = dats.Concat(xmls).OrderBy(f => f).ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
Dispatcher.UIThread.Post(() =>
|
Dispatcher.UIThread.Post(() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user