Please see attached image ...
Regardless of "Sort-Order-By Name" being ascending or descending, while using either:
or,
... by comparison the following results are respectively the same for both the above command's:
20240906_Testing.m3u
20241128_RB_Easy.m3u
20241218_ToeTap_Fun.m3u
2024_Easy.m3u
Billy_Jack.m3u
Bitter_Earth.m3u
Bitter_Earth_Jazz.m3u
Bitter_Earth_Slow-N-Easy.m3u
Hayes_New_Birth.m3u
Marvin.m3u
Swing_Jazz.m3u
... none of which is an exact match to what the attached "File Explorer" image displays, --no matter if Sorted-By-Name in ascending or descending order. Notice the order in which filename "2024_Easy.m3u" resides. With the default "Sort-Order-By Name" for "File Explorer", I would think "2024_Easy.m3u" would be listed before "20240906_Testing.m3u". It's not working out that way with either:
or,
Please advise and correct where needed.
Code:
OsName : Microsoft Windows 11 Home
OSDisplayVersion : 23H2
OsVersion : 10.0.22631
Code:
PS> Get-ItemPropertyValue c:\Windows\system32\cmd.exe -name versioninfo
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.22621.1 10.0.22621.1 ... C:\Windows\system32\cmd.exe
Code:
PS> Get-ItemPropertyValue c:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe -name versioninfo
ProductVersion FileVersion FileName
-------------- ----------- --------
10.0.22621.1 10.0.22621.1 ... C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe
Code:
cmd.exe> Dir /B
Code:
PS> Get-ChildItem -Name
... by comparison the following results are respectively the same for both the above command's:
20240906_Testing.m3u
20241128_RB_Easy.m3u
20241218_ToeTap_Fun.m3u
2024_Easy.m3u
Billy_Jack.m3u
Bitter_Earth.m3u
Bitter_Earth_Jazz.m3u
Bitter_Earth_Slow-N-Easy.m3u
Hayes_New_Birth.m3u
Marvin.m3u
Swing_Jazz.m3u
... none of which is an exact match to what the attached "File Explorer" image displays, --no matter if Sorted-By-Name in ascending or descending order. Notice the order in which filename "2024_Easy.m3u" resides. With the default "Sort-Order-By Name" for "File Explorer", I would think "2024_Easy.m3u" would be listed before "20240906_Testing.m3u". It's not working out that way with either:
Code:
cmd.exe> Dir /B
Code:
PS> Get-ChildItem -Name
Attachments
My Computer
System One
-
- OS
- Windows 11\Home