Cmdlet properties sort order

Frequent Contributor

Hi,  when looking through the properties of a cmdlet, eg; set-mailbox the property listing is not sorted alphabetically.  Is there any reason for this?


Steps to reproduce;

  1. Type Set-Mailbox
  2. Type -
  3. Type Ctrl + Space to auto-list properties
1 Reply

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 {

function bbbb {


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.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies