How can I sort date?

hi,
How do I sort date? Its in the following format 11 Mar 2002. The date is written using the calendar class in java.util.* package.
Please help me out.
Regards
Deepa Datar

long[] longArray = new long[dateArray.length];
for(int i=0;i<dateArray.length;i++) {
   longArray[i] = dateArray.getTimeInMillis();
Arrays.sort(longArray);
Now you can format the sorted longArray into appropriate date format.

Similar Messages

  • How can I Sort Data in table maintenance generator view

    Hi SAP Gurus,
    Please help me to know, In my view table I have data, time and open value and close value columns. In that I want to sort the data column in ascending order, how can I do that. Please suggest.
    Thanks and Regards
    Lakshmikanth

    Hi
    Thanks for the reply. That did not solved my problem.
    extract] = gt_ztest[ .
    gt_ztest] = extract[ .
    why the brackets r in this way??
    this is showing error, 'The field "EXTRACT[" is unknown, but there is a field with the similarname "EXTRACT". .'
    what can I do..
    Regards,
    Lakshmikanth

  • How can I sort data in view that all member are transent attributes ?

    I create a view that 's not based on query . and all member of that view are transent attributes . if I want to sort records in the view with a transent attribute .
    What should I do ?
    as I know I can set order by clause , if that view is base on query .
    but for the view that not based on query . I don't know how to sort .
    if I have to sort by myself , Can you recommend how to sort it ?
    thanks in advance

    Can you post this question on the JDeveloper forum since it is not related to Jheadstart?
    Thank you,
    Steven Davelaar,
    JHeadstart Team.

  • How can I sort lines of data (alphabetically) in the new pages 5.0?

    How can I sort lines of data (alphabetically) in the new pages 5.0?
    It was very simple to do in the previou version of pages.

    I'm not sure why people are torturing themselves with Pages 5 given the nearly universal outcry on this forum and the incredibly negative reviews elswhere, such as the App Store.
    Pages 4.3 should still be in an iWorks folder within your Applications folder.  Just use that.
    Please remember to tell Apple what we need from them at:
    http://www.apple.com/feedback/pages.html

  • How can I sort albums in a genre by release date in the itunes store

    How can I sort albums in a genre by release date in the itunes store

    Did you figure this out? Am having the same problem.
    EDIT:
    Found the group in store (in this case Juana Molina) It said music -> alternative
    Changed to column view, and could not find the artist at all in any of the sub categories.
    iTunes is really the biggest pain in the .... and has gotten worse over the years.

  • 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 can i sort photos by date taken, not date created?

    How can i sort photos by date taken, not date created?

    I'd like this feature as well. I tend to browse my photos by date in Aperture, but on ios thay always appear in some bizzare random order.
    I've tried several workarounds but with no luck. As metadata is present, surely this should be simple...

  • How can i sort cookies by add date?

    how can i sort cookies by add date, is there any method at all?

    Hi Ted
    Have a look at Cocoa Cookies. Requires minimum OS X Tiger. Not the most ideal cookie manager, but certainly a step up from Safari.

  • HT1267 The Apple ID in my new IPhone is not the same as my ID . how can i sort this

    Hi, The Users ID on My New IPhone Is not the same as my apple ID
    How can I sort this ...

    Got it!!!!  A re-install is NOT the answer.  You need to turn on individual notifications under Settings > Facebook > Push Notifications, BUT (and this is a big and confusing BUT) you also need to turn on global push settings under Settings > Mail, Contacts, Calendards > Fetch New Data (and change the Push slider to 'on').  This doesn't sound like it makes sense, but I guess that the push slider under 'Mail, Contacts, Calendars' is actually for ALL push notifications on iPhone, and not just Mail, Contacts and Calendar apps!

  • How can I sort my photos in a descending order as I could in iPhotos

    How can I sort my photos in a descending or ascending order as I could in iPhotos?

    Greetings Regina,
    Hope Waukesha is treating you well, haven't been there in years
    Events are sorted in the following ways:
    If Date, Keyword, Title, and Rating are not what you are looking for then it is time to start using Albums.
    Highlight the images you wish to work with and then go to File > New > Album (you can drag more images into this Album later if you want to arrange more of them.)
    Once you have the images in an Album you can use the "Manually" sort option which means you can drag the images into whatever order your heart desires.
    Hope that helps.

  • How can I sort the words in a document into an alphabetical list?

    How can I sort the words in a document into an alphabetical list? Thanks!

    writer888 wrote:
    How can I sort the words in a document into an alphabetical list? Thanks!
    Copy the words to the Mac's clipboard (Edit menu> Copy)
    Paste into TextEdit 
    Next open the Edit > Find > Find window in Text Edit.
    Highlight a space between two words and Edit menu > copy, paste into the Find field
    Next create a return in the middle of your text and copy that and paste into the Replace field
    Click Replace All.
    Now Edit > Select All and Edit > Copy
    Open a Spreadsheet program with Sort ability and paste into the second column cell from the top
    place a "a" into the top column cell, select the entire colum
    Sort desending order
    Now if you need it out of spreadsheet format, then your going to need to copy just the data cells (not the entire column to avoid problems) and Paste "Special" as unformatted text into a word processing program
    If you need to get rid of the Returns, do the opposite you did in Text Edit, replace the Returns with Spaces
    A chore, but it's rare one needs to sort words into alaphabetical order.
    FYI, I used TextEdit and the free LibreOffice (Spreadsheet and Word Processing) for the above effects.

  • Pages:  How can I sort one column of words and not have it affect the other columns?

    How can I sort one column of words and not have it affect the other columns?  I have opened the inspector to the edit columns and rows under Table.  It will sort the column, but then it changes the other colums as well.  I know that if I use Numbers, it will work, but I want to know how to do the same thing in Pages.

    Hi Peter,
    Numbers sorts full rows on values in selected column(s). The technique for sorting a single column is essentially the same as Jerry is describing for Pages tables—separate the (data in the) column to be sorted, sort it, return it to the table.
    In Numbers the actual column may be separated from the original table, sorted, then returned. In Pages, the data must be extracted, sorted, then pasted back in, overwriting the unsorted data (if it was left in the original table).
    iWork tables follow a database model in which each row is a Record, and each column holds a Field within the records.
    As evidenced by the current question (and several similar questions arising in the Numbers community) that model doesn't apply to the way some users, especially some who come in from the MS Excel world, use tables.
    With Excels model—islands of data on a single large table, the ability to sort one or a selected few columns of data makes sense. One 'island' may comprise only cells AA21:AH50. Sorting that small 'table' should be possible without disturbing the rest of rows 21-30, which are probably part of one or more other 'data islands' in the sea that is a MS Excel spreadsheet.
    In Numbers, each of those 'islands' would be a separate Table, and that Table would be sortable without disturbing other Tables in the document.
    Regards,
    Barry

  • How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    How can I sort photos within an event? When I follow the Help instructions, I can sort manually in Photo format, but when I return to Event format, the original order is restored.

    Events are organisation for those who can't really be bothered. They are automatic - based entirely on Date and Time the camera records the photos as taken.
    You can move photos between Events, you can Merge Events, you can Rename them and sort them in various ways except one: You cannot manually sort in an Event as Events are all automated.
    If you want to manually sort in an Event then you've outgrown Events as an organising tool. Now it's time to look at albums (Where you can manually sort) which are much more flexible than Events as an organising tool.

  • How can I sort the Pictures in an Album by Name?

    I am updated my Photo App on OSX 10.10.2. All my Albums are imported fine, but how I can sort the Pictures in one Album by name? I just found the option for the Albums.

    Currently you can sort regular albums manually or by date; Smart Albums only by date; see How can you sort Album or Smart Album photos?

  • IPhoto:  How can I sort photos within an event?  I can't figure out how to activate the Manual Sort.

    iPhoto:  How can I sort photos within an event.  I can't figure out how to activate the Manual Sort button.

    Only albums can be sorted manually. Events can only be sorted automatically according to one of the predefined settings "Date, Keywords, Title, Rating".
    If you need a manual sort order, selectaall photos in the event and create an album: File > New Album

Maybe you are looking for

  • The question about the service fee

    I went to the apple store and I got an apple iphone replacement so what does this mean?(flat rate repair retail-int) and how much should i pay that ??

  • How can I remove the stick from the back of the mac

    How do you remove a stick safely from the back of the computer

  • Cisco AnyConnect Secure Mobility Client - Script Problem

    I am running ASA 8.4(1) ASDM 6.4 and Anyconnect Client 3.1.05152, and am running into issues where the script is pushed to the client but is not executed. EnableScripting = true is set in the profile. I have named my script OnConnect.vbs and I see it

  • No sound in iChat

    Any thoughts as to what may have caused sound to disappear on my wife's MacBook Pro? We were in the middle of a video chat and all of the sudden her sound went away such that I was no longer able to hear her (video was fine) but she could still hear

  • Detecting Page Break before/after text

    Is there a way to detect if there is a page break before or after a block of text through scripting?