Forum Discussion
Cmdlet properties sort order
- Jul 05, 2018
This is basically the same order parameters appear when you are tab-ing, however ctrl+space is part of the PSReadLine module and only available on PS 5.0+ by default.
The order is defined by the order parameters appear in the function definition. Here's a simple example to try:
function aaaa { param($a,$b,$c) } function bbbb { param($n,$a,$v) }You can imagine that with functions such as Set-Mailbox that have dozens upon dozens of parameters, keeping the ordering alphabetic is probably the last priority.
This is basically the same order parameters appear when you are tab-ing, however ctrl+space is part of the PSReadLine module and only available on PS 5.0+ by default.
The order is defined by the order parameters appear in the function definition. Here's a simple example to try:
function aaaa {
param($a,$b,$c)
}
function bbbb {
param($n,$a,$v)
}
You can imagine that with functions such as Set-Mailbox that have dozens upon dozens of parameters, keeping the ordering alphabetic is probably the last priority.