How do you sort into descending order?

How do you put your data into a descending/ascending order?

This is one way (click the disclosure triangle by the column letter to get this contextual menu):
SG

Similar Messages

  • How do you sort vector descendingly?

    Lets say if have a vector which contains values in double data type.
    Vector vNum = ne wVector();
    vNum.addElement(new Double("50.5"));
    vNum.addElement(new Double("40.5"));
    vNum.addElement(new Double("60.5"));_______________________________________
    If you sort it ascendingly by entering the code:
    Collections.sort(vNum);The result would be
    40.5
    50.5
    60.5
    and it is correct. But i tried to sort it descendingly by entering the code:
    Collections.reverse(vNum);The result was:
    60.5
    40.5
    50.5
    Someone told me before that the code for sorting descendingly was Collections.reverse(vectorName); but it didnot work.
    Does anyone know what's the code for sorting the Vector descendingly?
    thanks!

    Collections.reverse(list) just reverses the order of the elements in the specified list.
    You can either call sort() and then reverse(), or you can specify your own Comparator for sorting in reverse order. (I prefer the second solution)
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collections.html#sort(java.util.List,%20java.util.Comparator)

  • How can you sort photos by descending date in Photos?

    how can you sort photos by descending date in Photos?

    There is no way to do that.
    http://www.apple.com/feedback/macosx.html
    Let Apple know your requirements.

  • How do you shuffle the image order when creating a new slideshow in apterture 3?  i would like to do this automatically when creating a new slideshow.  i see how you do it when you just play a slideshow.

    how do you shuffle the image order when creating a new slideshow in apterture 3?  i would like to do this automatically when creating a new slideshow.  i see how you do it with presets when you just play a slideshow, but i don't see an option to randomly shuffle the slide order when you create a new slideshow.  i know you can sort it by different fields, but i want it to be random.  thanks.

    If you want to rearrange images in random order you can try an AppleScript:
    retrieve a list of selected images from Aperture
    shuffe the list properly
    create an album in Aperture and add the images from the list to the album (make sure that the album set to be orederd manually)
    Here  is a sample script that shuffles the selected images and displays them in random order in Full Screen Mode:
    on removeItem(ims, i)
      -- remove the item at position "i" from a list ims
              if ims is {} then return {}
              if (length of ims is 1) then return {}
              if i < 2 then return rest of ims
              if (i = length of ims) then return (items 1 thru (i - 1) of ims)
              if i > (length of ims) then return ims -- should be error?
              return (items 1 thru (i - 1) of ims) & (items (i + 1) thru (length of ims) of ims)
    end removeItem
    on shuffle_items(ims)
      -- shuffle the items of the list "ims" randomly
              local numitems, ims_shuffled, nextrest, nextpick, i
              set numitems to length of ims
              if length of ims < 2 then return ims
              set ims_shuffled to {}
              set nextrest to ims
              repeat until nextrest is {}
                        set i to (random number (numitems - 1)) + 1
                        set nextpick to item i of nextrest
                        set beginning of ims_shuffled to nextpick
                        set numitems to numitems - 1
                        set nextrest to removeItem(nextrest, i)
              end repeat
              return ims_shuffled
    end shuffle_items
    on shuffleIms()
      -- retrieve the selected images from Aperture
      -- and display them in random order in full screen mode
              local imageSel, shuffled, i
              tell application "Aperture"
      activate
                        set imageSel to (get selection)
                        set shuffled to my shuffle_items(imageSel)
                        set fullscreen to true
                        if imageSel is {} then error "Please select some images."
                        repeat with i from 1 to count of shuffled
                                  reveal {item i of shuffled}
      delay 3 -- chnage that to the time you want
                        end repeat
                        set fullscreen to false
                        return shuffled
              end tell
    end shuffleIms
    shuffleIms()
    Some more code snippets to go from here:
    To create an album:
                        tell library 1
                                  if not (exists album "shuffledAlbum") then
      make new album with properties {name:"shuffledAlbum", image version:shuffled}
                                  end if
                        end tell
    And to add the images from the shuffled list to the album:
                        repeat with i from 1 to count of shuffled
                                  duplicate item i of shuffled to album "shuffledAlbum"
                        end repeat
    Regards
    Léonie

  • How do I sort the album order in my music window in itunes 11.

    I am wondering how I can sort the album order in my main music section.  I have had to collect up tracks spread across several 'albums' into the 1 album they were.  The name is the same.  Now this album, 'The War of the Worlds', has 2 CDs.  One is now where it should be, the other is near the end of my albums.  How can i sort the order?
    TIA
    Chris

    See Grouping tracks into albums. A big split in the postition can be caused by different Album Artist or Sort Album Artist, or one disc might be marked as a compilation while the other isn't.
    tt2

  • How do you sort the safari  "Bookmarks Bar" bookmarks

    how do you sort the safari  "Bookmarks Bar" bookmarks

    Here is the workaround for sorting your bookmarks - you don't have to do it manually as suggested in the previous answer here. This is from a 2006 page at Hints.Macworld.com
    "One thing that bugs me is that there is no option in Safari to alphabetize bookmarks. I had a crazy idea about how to accomplish this, and it seems to work. Hopefully I'm not missing something more obvious.
    What I did was open the Bookmarks window (Bookmarks: Show All Bookmarks), put the links I wanted to alphabetize into a folder, and then dragged that folder into the Finder. The Finder alphabetizes the bookmarks; you can then just drag the folder back into the Bookmarks window. You probably have to set the Finder to arrange files by name before it will work. Hope this helps!
    [robg adds: When you drag the folder back, you'll now have two folders, the original and the sorted one. Just delete the original, and you're set. You can also do this without first creating a Safari folder. Just select all the bookmarks to be alphabetized, drag them into a new folder in the Finder, open that folder (make sure it's set to sort by name or use column view), then drag the now-sorted bookmarks back into Safari's Bookmarks window. Again, you'll have duplicates, so just delete the originals (which will be grouped above the newly-placed list). I wonder if any of this is scriptable...]"
    If you're like me and you like to keep all of your bookmarks in folders in the Bookmarks bar, then from the Bookmarks window you would open the Bookmarks Bar in a window of its own before doing the above.

  • Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Need to show proof of purchase to my insurance company, but my phone was replaced by apple so has a different imei number to the one on my receipt, how do you sort this out??

    Contact Apple and see if they can provide any documentation of the device swap.

  • How do you get into the BIOS on a Satellite 320 CDS.

    Hi my name is steve I was wondering how do you get into the BIOS on a satellite 320 CDS. As this is my first format on a lap top. Done plenty on desktop computers just never laptops. As some fool tried to do it before me and distroyed it. Now the only thing that happens is after the toshiba logo disappears this message comes up, INVALID SYSTEM DISK, REPLACE THE DISK AND THEN PRESS ANY KEY. It use to run Windows 98 and it worked great for how old it is. Was hoping to put XP on it but its only got a small hard drive (4099mb). So will have to put 98 back on it till I get a bigger hard drive.Only need it to teach my daughter how to respect a laptop. I mainly want to get into the BIOS for format. Any instruction on how to get into the BIOS would be great, as I'm good from there. Thank you in advance for your help.

    Hi,
    I don't know the exact method for the Satellite 320 CDS.
    But most of the Toshiba notebooks use one of the following methods.
    If you see a message while booting "Press F2 to enter setup", do it and you get into BIOS.
    Or you have to press ESC while booting, then press F1 when prompted to and you are in the BIOS.
    Bye

  • How do you sort iBooks library by author's  last name

    How can you sort the iBooks library by author's last name. Currently the sort by author uses first name.

    Anyone have a solution to this yet?
    In MUSIC, clicking on columns to add ALBUM name only adds ALBUM by ARTIST which does not give a way to see and sort for the entire LIBRARY.
    Seems to be a lost ffeature in the new 9.0 version.

  • How do you sort photos by face/name on iPad2?

    How do you sort photos by face/name on iPad2?

    iPhoto is designed to work with photos from cameras, and so seeks the date in the Exif metadata that the camera writes to the file.
    There is no way to organise photos by the date they were imported to iPhoto.
    Regards
    TD

  • In iPhoto, how do you manually move the order of a photo within an album?

    In iPhoto, how do you manually move the order of a photo within an album?

    Within an Album? Drag and drop.
    You can't do this in an Event.
    Regards
    TD

  • How do you sort safari bookmarks

    How do you sort bookmarks in safari? Why does apple not allow you to do this?

    Hi,
    You can manage your Bookmarks anyway you like.
    Start here.  http://www.cultofmac.com/how-to-manage-safari-bookmarks-efficiently-macrx/35616
    If you want to alphabetize a Bookmark folder just move it to your Desktop. The Finder will automatically alphabetize the list of Bookmarks for you then just drag it back to the Safari window.
    Carolyn 

  • How do you sort Pics in Smart Folder? Photos App

    How do you sort pics in a smart folder in the Photos App? Date, Name, etc.

    Yes, when I do that it sorts the albums in the folder by name.
    I may have misused terminology, I meant Smart Albums not smart folders, if this makes a difference.
    Thanks for your help!

  • How do you sort video in itunes

    in itunes you have the video section then you have 4 subsections Movies,Music Videos, Podcasts, and Tv Shows.
    How do you sort the different video in itunes from all vidoes to those subsections

    ben7072 - I just found this on the discussions board: "Under View Options in the View menu, check the box that says Artist. Then rearrange your shows by Artist instead of Show."
    It does work. Obviously, the Artist needs to be the same a Show for it to truly fix our problem here... this is the case for me.
    I'd still like to know what the real problem is though...
    iMac G5   Mac OS X (10.4.9)  

  • HT1212 How do you get into a ipod that you can't remember the passcode

    How do you get into a ipod that you have forgotten the passcode?

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    Forgotten Restrictions Passcode Help
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    Also, see iTunes- Restoring iOS software.

Maybe you are looking for

  • Using iCloud, how do i sync all email messages/folders etc

    how can i sync all email messages and folders using the icloud service?  i have updated and re-organized my email folders on my imac and i want them to sync with my iphone and ipad.  all of my other things are syncing very well between the three devi

  • My browser wont open any applet

    Hi, im new at Java, i dont know almost anything about it; but im going to learn.. so i installed j2sdk1.4.0_01 and now i cant view any applet at all i always get this message: Exception:java.lang.NullPointerException. I havent program an applet yet..

  • SAP BCM CDT browser issue.

    Hi Experts i was watching your earlier thread (threadID=2002983)and gud to see that the users's problem of CDT login has been resolved. it gave me immense strength that my same issue can be resolved with the experts and your concern. can you please h

  • Help? wayyyy to many choices...

    Hey guys ok i just kept looking here theres MILLIONS of cameras obiously but this is a question how do you know witch one suits you and witch one you should get when it comes dfown to the finals..... all i know is read reviews goods bads etc... anywa

  • When I click on bookmarks or any other tool ...all that i see is a ghost outline of the box

    Clicking on any of the tools like File Edit View Bookmarks just brings up a ghost outline of a box but no info