Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Sorting output in Ascending rather than Descending

Reply
 
Old 01-28-2008   #1 (permalink)
j0seg


 
 

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 SpecsSystem Spec
Old 01-28-2008   #2 (permalink)
Shay Levi


 
 

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 SpecsSystem Spec
Reply

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46