Is there a way in PowerShell to sort data that does not have a header. I cannot use | sort-object dateViewed because my data does not contain a header. I could use a script to create a new object with a header, but is there a way to sort by the 3rd column?
If I have a cli API aws get-vols that returns data like:
disk00 123456 20180103
disk00 222222 20180101
disk00 333333 20180102
I'm looking for the easy way out.
aws get-vols | sort-object (specify something that means column 3)
And i would see:
disk00 222222 20180101
disk00 333333 20180102
disk00 123456 20180103
aws get-vols?