Skip to content

Commit 2f7bd31

Browse files
matt9ucciSean Wheeler
authored andcommitted
Split parameter set in Sort-Object.md v6.0 (#1975)
Since v6.0, Sort-Object cmdlet has two parameter sets, "Default" and "Bottom".
1 parent 2247085 commit 2f7bd31

File tree

1 file changed

+14
-33
lines changed

1 file changed

+14
-33
lines changed

reference/6/Microsoft.PowerShell.Utility/Sort-Object.md

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,18 @@ Sorts objects by property values.
1515

1616
## SYNTAX
1717

18+
### Default
1819
```
19-
Sort-Object [-Descending] [-Unique] [-InputObject <PSObject>] [[-Property] <Object[]>] [-Culture <String>]
20-
[-CaseSensitive] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [<CommonParameters>]
21-
[-Top <Int32>] [-Bottom <Int32>]
20+
Sort-Object [[-Property] <Object[]>] [-Descending] [-Unique] [-Top <Int32>]
21+
[-InputObject <PSObject>] [-Culture <String>] [-CaseSensitive]
22+
[<CommonParameters>]
23+
```
24+
25+
### Bottom
26+
```
27+
Sort-Object [[-Property] <Object[]>] -Bottom <Int32> [-Descending] [-Unique]
28+
[-InputObject <PSObject>] [-Culture <String>] [-CaseSensitive]
29+
[<CommonParameters>]
2230
```
2331

2432
## DESCRIPTION
@@ -182,7 +190,7 @@ Specifies the number of objects to get from the end of the sorted object array.
182190

183191
```yaml
184192
Type: Int32
185-
Parameter Sets: (All)
193+
Parameter Sets: Bottom
186194
Aliases:
187195

188196
Required: False
@@ -242,33 +250,6 @@ Accept pipeline input: False
242250
Accept wildcard characters: False
243251
```
244252
245-
### -InformationAction
246-
```yaml
247-
Type: ActionPreference
248-
Parameter Sets: (All)
249-
Aliases: infa
250-
Accepted values: SilentlyContinue, Stop, Continue, Inquire, Ignore, Suspend
251-
252-
Required: False
253-
Position: Named
254-
Default value: None
255-
Accept pipeline input: False
256-
Accept wildcard characters: False
257-
```
258-
259-
### -InformationVariable
260-
```yaml
261-
Type: String
262-
Parameter Sets: (All)
263-
Aliases: iv
264-
265-
Required: False
266-
Position: Named
267-
Default value: None
268-
Accept pipeline input: False
269-
Accept wildcard characters: False
270-
```
271-
272253
### -InputObject
273254
Specifies the objects to sort.
274255
@@ -315,7 +296,7 @@ Parameter Sets: (All)
315296
Aliases:
316297

317298
Required: False
318-
Position: 1
299+
Position: 0
319300
Default value: None
320301
Accept pipeline input: False
321302
Accept wildcard characters: False
@@ -326,7 +307,7 @@ Specifies the number of objects to get from the start of the sorted object array
326307
327308
```yaml
328309
Type: Int32
329-
Parameter Sets: (All)
310+
Parameter Sets: Default
330311
Aliases:
331312

332313
Required: False

0 commit comments

Comments
 (0)