I am trying to do this as a one liner in powershell, so that I can move on to check these strings against a check string. The trouble I am having is that no matter what I do, I can only set it by string length.
The following attempts failed to get the required result.One does text great, the other by length successfully. I have also tried to pipe them in but I believe that neither accept pipeline input.
Your help is appreciated as am new to powershell.
PS C:\Users\IEUser> Get-Content Desktop/dict.txt | Sort-Object
PS C:\Users\IEUser> Get-Content Desktop/dict.txt | Sort-Object -Property Length