From UserVoice https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/18580849-bug-sort-is-incorrect-for-strings-containing-the
Steps to reproduce
"somefile1","somefile2","s-abc","s-little","s-foo","s-poo","s-wtf" | sort
Expected behavior
s-abc
s-foo
s-little
s-poo
s-wtf
somefile1
somefile2
Actual behavior
s-abc
s-foo
s-little
somefile1
somefile2
s-poo
s-wtf
Environment data
> $PSVersionTable
Name Value
---- -----
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSVersion 6.0.0-alpha
PSEdition Core
BuildVersion 3.0.0.0
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.3
CLRVersion
WSManStackVersion 3.0
GitCommitId v6.0.0-alpha.17
From UserVoice https://windowsserver.uservoice.com/forums/301869-powershell/suggestions/18580849-bug-sort-is-incorrect-for-strings-containing-the
Steps to reproduce
"somefile1","somefile2","s-abc","s-little","s-foo","s-poo","s-wtf" | sort
Expected behavior
s-abc
s-foo
s-little
s-poo
s-wtf
somefile1
somefile2
Actual behavior
s-abc
s-foo
s-little
somefile1
somefile2
s-poo
s-wtf
Environment data