Allow using Select, Sort, Group, and Measure without a pipeple
It should be possible to use Select-Object, Sort-Object, Group-Object, and Measure-Object without a pipeline.
In those circumstances where a script needs to be optimized for speed, one of the first things to do is to eliminate pipelines because of the huge overhead they incur. Because of these four commands, eliminating all pipelines is sometimes impossible or requires coming up with complex alternatives to them.
I would expect these two commands (or some variation of the second one) to produce the same result:
2, 1, 3 | Sort-Object
Sort-Object -InputObject 2, 1, 3
Currently, the second line treats the array in the second command as a single item to be sorted, and leaves the contents of the array untouched.
