Fixes #535 - module using sort instead of sort-object causing unexpected behavior on powershell core/Linux. Instead of only addressing the issue at hand, I looked for other instances of sort being used instead of sort-object for other modules within this repo and corrected those as well. I think I got most of them, but feel free to raise another issue if you find another. If the sort was in an example/help statement, or was inside the logic/process of the function, I replaced sort with sort-object. In the one case where the sort was only applied to the output I removed the statement -- this way the function user can add the sort in their script and not have to sort output twice. I changed a couple select/where with select-object/where-object along the way as well just as I saw them. Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
VMware infrastructure Module
[Vi-Module.psm1] (https://github.com/vmware/PowerCLI-Example-Scripts/tree/master/Modules/Vi-Module)
To install this module, drop the entire 'Vi-Module' folder into one of your module directories.
The default PowerShell module paths are listed in the $env:PSModulePath environment variable.
To make it look better, split the paths in this manner $env:PSModulePath -split ';'
The default per-user module path is: "$env:HOMEDRIVE$env:HOMEPATH\Documents\WindowsPowerShell\Modules".
The default computer-level module path is: "$env:windir\System32\WindowsPowerShell\v1.0\Modules".
To use the module, type following command: Import-Module Vi-Module -Force -Verbose.
To see the commands imported, type Get-Command -Module Vi-Module.
For help on each individual cmdlet or function, run Get-Help CmdletName -Full [-Online][-Examples].