![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Sorting output in Ascending rather than Descending Hi all, Okay I've been doing some searches online, and also reading in my powershell books, but I cant seem to find the command to sort in ascending, and I know I can sort in Descending but when I enter sort-object -ascend or -asc I get an error..but -desc seems to work...if I try to leave sort-object blank I also get an error. So I figured I'd ask for a lil help... Joseg |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Sorting output in Ascending rather than Descending There is no Ascending parameter on select-object, it's the default behavior. What do you get for: dir | sort Can you see that the files are sorted in Ascending order? Can you post your command? ----- Shay Levi $cript Fanatic http://scriptolog.blogspot.com Quote: > Hi all, > > Okay I've been doing some searches online, and also reading in my > powershell books, but I cant seem to find the command to sort in > ascending, and I know I can sort in Descending but when I enter > sort-object -ascend or -asc I get an error..but -desc seems to > work...if I try to leave sort-object blank I also get an error. So I > figured I'd ask for a lil help... > > Joseg > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Re: Set Discussions by Descending Dates | Live Mail | |||
| Enexpected output when using output-csv | PowerShell | |||
| No output from write-output | PowerShell | |||
| Sorting output from foreach | PowerShell | |||
| sorting the help output | PowerShell | |||