Windows Vista Forums

Sorting output in Ascending rather than Descending

  1. #1


    j0seg Guest

    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

  2.   


  3. #2


    Shay Levi Guest

    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

    > 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


Sorting output in Ascending rather than Descending
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