How can i sort a list ?

Hallo!
Some days ago, i made a small programm, which is able to read *.txt files and list it out! Now i am trying to sort this list ( by age or name). I think it�s possible with the "compareTo" Methode. But i don�t no how? Please give me some tips!
Thanks a lot!
chris!

I suggest you try to look at java.util.Comparator interface.

Similar Messages

  • How can I sort a list in Pages?

    hey folks, i have just finished typing my first long report on pages and must say how impressed i have been at how simple it is to use. Just a quick query really, i have approximately 50 references which are essentially their own paragraphs and i want to sort them into order Author A-Z. In Word if i highlighted the list i could press sort and it would do it for me, i just wondered if there was a similar function in pages.
    Cheers.

    Select the paragraphs to sort.
    menu Format > Table > Convert text to table
    select the table cells then
    Inspector > Table > Edit Rows and columns > Sort …
    menu Format > Table > Convert table to text.
    Don't worry, no offense, I stopped while writing +BUSCH G.W. is an american president+
    Yvan KOENIG (from FRANCE dimanche 18 mai 2008 17:32:35)

  • How can i sort a list of pages in CQ?

    Hello
    I have a structure like this in CQ:
    /content/mywebsite/page3
    /content/mywebsite/page1
    /content/mywebsite/page5
    /content/mywebsite/page2
    /content/mywebsite/page4
    when i open mywebsite i see a menu with the list of pages in it like this:
    page3
    page1
    page5
    page2
    page4
    is it possile to sort those pages in the server creating some kind of view?
    or is it better to sort it in the client side?

    Hi,
    One way would be to go to the /content hierarchy in CRXDE and move pages(drag drop) in the order you want to see in the websites OR manually edit the content.xml to have the order you wish to see.

  • 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.

  • HT5534 how can I sort names in a list made in pages

    I made a list of addresses inm two columns using pages 09. How can I sort the last names in alphabetical order ?

    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=256&mforum=iworktips ntrick
    Peter

  • I sent out an email to a group of 5 and addressed it to myself- it appears to have gone to my whole contact list- how can I sort this please

    I sent out an email to a group of 5 and addressed it to myself- it appears to have gone to my whole contact list- how can I sort this please?

    Nope, not strange at all. No system should try to be all things to all people. 
    Actually, there is a way to do this:  After creating a group message, save the conversation and add new messages it when necessary.
    If you want to suggest someting to Apple, post it here:
    Apple - iPhone - Feedback

  • How can I sort the target list in debug form.

    If I want to select a procedure/function to debug it is very hard to find it if the package contains a lot of procedures. How can I sort the target list. I did not find anything in the preferences. Thanks.

    Sorry, can't be done. You can request this at the SQL Developer Exchange though, so other users can vote and add weight for possible future implementation.
    My suggestion (if you decide to request it): base the order in the dialog on the order inside the navigator tree (location in the source by default, but possible by name or type/name - see tree's context menu).
    Regards,
    K.

  • Hi ,How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi ,how can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm
    or poerwshell . i have struggled for a week
    tchocr

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I get a list of all my annotations to send to someone else, listed by PAGE #, not order.

    How can I get a list of all my annotations to send to someone else, listed by PAGE #, not order??

    The comments list is sorted by page by default. If it's not for some reason, click the "Sort comments" button and select that option. It looks like this:

  • How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    How can I get a list of all laptops or users with folder direction enabled or offline files enabled, be it sccm or poerwshell . i have struggled for a week.

    Hi,
    There is no such PowerShell command can achiev this. Maybe you can use a script to get the user name with folder redirection enabled. However, I am not familiar with writing script, and it would be better for you to ask in script forum below for professional
    assistance:
    http://social.technet.microsoft.com/Forums/en-US/home?forum=ITCG&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Mandy
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can I put a list in alphabetic order?

    How can I put a list in alphabetic order?

    If you don't mind putting the list in a Table, you can use the table tools to sort the rows into alphabetic order. If you don't like the idea of a table in your document and you don't want to go through converting your text to a table and back again, you can download, and install, and setup, Devon WordService, a free third party app that provides sorting and many other useful functions.
    Jerry

  • Some of my album titles aren't in alphabetical order in the album title playlist . how can I sort them outt

    some of my album titles aren't in alphabetical order in the album title playlist . how can I sort them out

    Hi Chris and thanks for your answer. I am not talking about the contents of a particular album but the list of albums I have on the left hand side of the itunes screen. there are a dozen albums at the top that aren't in any order and I can't drag them down to where in the playlist they should be to keep them in some sort of order. any assistance would be helpfull and h. new year from Aust. .......s.l.f.f. ....re( my names Chris to )

  • How can you sort bookmarks in the Sidebar by date added? Works in Library but does not carry over to Sidebar.

    When opening the Bookmarks Sidebar, the oldest bookmarks added are at the very top, easily visible.
    The most recent bookmarks added are at the bottom, requiring me to scroll all the way down every time I want to visit a recent bookmark. This is a major nuisance. I'm actually a little shocked that this happens when it's such an obvious hassle.
    How can I flip the list of bookmarks so the newest ones are right at the top where I can easily access them?
    Sorting in the Library does not carry over to the Sidebar as far as I can tell.

    Looks as though the SortPlaces add-on should be able to do it.
    Similar thread: [http://support.mozilla.com/fur/questions/771606 I would like to find a way to save my bookmarks unsorted but with the newest saves at the top of the list. I don't want alphabetical order. 3.6.13 | Firefox Support Forum | Firefox Help]
    Add-on: [https://addons.mozilla.org/en-US/firefox/addon/sortplaces/ SortPlaces :: Add-ons for Firefox]

  • How can I sort iCloud contacts by Business Name?

    I'm trying to use my phone for business. How can I sort my phone contacts in iCloud by Business Name, not First/Last or Last/First. Their needs to be selections for the business user.  More fields.  I don't want to bastardize my contact list right from the start. Did I buy the wrong phone?

    The best app out there (to sort by COMPANY NAME) that nobody knows of is  called "EasyContacts". Be sure to search for it was written in the app  store. It is money well spent. Every person I show this app to decides  to buy it. I use Card Scan still to scan business cards and then export  the contacts to Outlook. I then sync my iPhone via iTunes to read my  Outlook contacts. PERFECTION!!

  • HT1338 How can I sort folders in descending sequence

    How can I sort folders in descending sequence?

    There are two display options in the Finder, Arrangement and Sort. They are both under the same menu item/toolbar button. A regular click brings up the Arrangement menu. Holding down the option (alt) key brings up the Sort menu.
    Except for Arrange by Name, all of the Arrangements are groupings. It groups the items by whatever criteria you chose. Within the groups, you can sort the items by other criteria.
    If you arrange by Name, you can't sort by anything else.
    Also, with an Arrangement set, you cannot adjust the sort direction.
    To control the sort direction, set Arrangement to None, and sort by Name. Open the List view of that folder and click on the sort triangle in the column header.

Maybe you are looking for

  • CONVERT function from SQL-Server 7.0 to Oracle

    Whenever a Convert function appears in the T-SQL, WorkBench converts it to RPAD and doesn't warm about it. How can I avoid this situation??? It`s very urgent!! I`ve to migrate an entire system and I`m very short of time. Any comment would be helpfull

  • Interactive PDF Form Within HTML Layer

    I am using DW8 and have flash, etc.....Has anyone got around to creating a dll for direct imbeding of pdf files in a layer or named anchor. I am somewhat sure that a outside link can be created with an icon on the page but it would seem practical tha

  • Why can't I download Flip4mac update via Safari?

    Because of continuing, apparently unresolvable problems with Firefox 3, I decided to use Safari instead. Apart from Safari being deadly slow, periodically I have had this problem. Each time I receive a "wmv" file, I am told that my Flip4mac is out of

  • Import Export Imges in JAVA to binary code with firebirds

    I'm having problems with a java netbeans. I want a start a disccus about how we can import and export images from and to, binary code. We can play with Blob variables, but i dont know how can we insert to a Firebird database and how we can read this

  • What is the best method to reduce the Render size?

    hi, my movie files which i want to edit come to a total of 4GB and when i edit the movie and render the files it comes to a size of 20GB!..thats way to large and will take forever to compressor or export to a another format. What do you guys recommen