I want to use ⍋ to sort ascending, and use ⍒ to sort descending.
I successfully set ⍋ as an alias for sort (default is ascending):
Set-Alias -Name ⍋ -Value Sort-Object
I failed to set ⍒ to an alias for sort descending:
Set-Alias -Name ⍒ -Value Sort-Object -Descending
Here is the error message I received:
Set-Alias : A parameter cannot be found that matches parameter name 'Descending'.
At line:1 char:38
+ Set-Alias -Name ⍒ -Value Sort-Object -Descending
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Set-Alias], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.SetAliasCommand
Any help would be appreciated.