-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Closed
Labels
Resolution-AnsweredThe question is answered.The question is answered.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
Steps to reproduce
I am experiencing problems with the result of sort cmdlet.
Here a string array 'file.txt','file_h.txt'
I apply sort in it : 'file.txt','file_h.txt' | sort
with powershell 5.1 the result is :
'file.txt','file_h.txt' | sort
file.txt
file_h.txt
with powershell 7.4.1 the result is :
'file.txt','file_h.txt' | sort
file_h.txt
file.txt
wich is not lexical order
Expected behavior
PS>'file.txt','file_h.txt' | sort
file.txt
file_h.txtActual behavior
PS>'file.txt','file_h.txt' | sort
file_h.txt
file.txtError details
No response
Environment data
Name Value
---- -----
PSVersion 7.4.1
PSEdition Core
GitCommitId 7.4.1
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0Visuals
No response
scriptingstudio
Metadata
Metadata
Assignees
Labels
Resolution-AnsweredThe question is answered.The question is answered.