Using TreeSet, how to list in ascending order....

hi i need to use TreeSet class
and i need to list the list of books in order of ISBN number
and also in order of author..
both in ascending order..
ivebeen thinking for long long time but..can't figure it out..
please help me guys thanks

The Java� Tutorial - Object Ordering
Making Java Objects Comparable

Similar Messages

  • How to list incompleted sales order documents by plant or profit center

    Hi, Is it possible to to list incompleted sales order documents by plant or profit center? How?
    Thanks very much.

    Hi
    You can have list of open sales orders wrt to plant and probably it may be useful to you.
    This can be done with configuration so that you can add plant to the selection criteria in the T code VA05.
    Goto IMG - Sales & Distribution - Sales - Lists - Define Selection Criteria - Execute
    Click  New Entries and enter  the below fields  save the changes.
    Program Name - SAPMV75A
    TRG (Transaction Group) - 0
    Display Group - K
    Event - SELK
    It - 8
    Field Name - WERKS
    Goto VA05 and now you can see the field Plant in the Fur Sel Criteria.
    Regards,
    Phani Prasad
    Edited by: phani.prasad on Nov 8, 2011 9:36 AM

  • Sharepoint 2010 under Library created folder , under this folder we have added so many folder, wants to keep them in ascending order,how to save as ascending order folder

    have created folder in library Cost , and under
    Cost created so many folder for different model, wants to keep them in ascending order,
    I found the option I can sort it as ascending order, when I close this screen than it goes back to way it was,
     is there a way to save it in ascending order all the folder screen, so when I open cost library , it stays in same order,
    2nd question :   we have approved column ,  when the person approved the cost , is there a way to keep that person the name,
    right now when the next time some other users open that file that users name comes in the approved column,
    can some one please help,
    any advise will be helpful.

    Hi Bitia,
    To create workflow in SharePoint, I recommend to use SharePoint Designer to achieve this goal.
    Firstly, we need to allow the site to be edited in SharePoint Designer, please refer to the "SharePoint Designer settings page" part in the article below:
    https://support.office.com/en-ca/article/Managing-SharePoint-Designer-2010-e12d76ce-83f7-4dde-864c-6c1e210399b6#__toc254689397
    Secondly, we can install SharePoint Designer from the site or just download and install it.
    https://kb.pachosting.hk/article/how-to-install-sharepoint-designer-to-edit-site-content-9333.html
    http://www.microsoft.com/en-us/download/details.aspx?id=16573
    After that, we can use SharePoint Designer to create workflow:
    https://support.office.com/en-ie/article/Introduction-to-designing-and-customizing-workflows-32c9c0bf-5e20-4f74-8b9c-d3ea79f2962b
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to list OPEN sales orders only

    Standard B1 sales analysis reports, report on ALL orders whether they are closed or not.
    (i.e. sales A/R - Sales Reports - Sales Analysis - click the orders button - select date range)
    The above returns all orders and I'd like to return ONLY the uninviced orders
    Is it possible to report on OPEN orders only? If so how?

    Hi Martin ,
    I am providing you this suggesstion so that you can solve another issue  effectively.
    For example , You need to get sales order with status open,
    Fo to sales ->Sales Order
    On the menu bar -->View -->System information
    Lets say you need togo to Check status , point your cursor at the particular field --you can see at the status bar it is coming from OCRD .Docstatus .similarly you can get information about the field you want in your report
    So -go to query generator ,
    select the table --OCRD ,
    Select the field you want  and execute .You build your query based on your need . You can put more filter based on where clause --where Docstatus='o'
    Some basic sql command willbe more helpful to improve your skill .
    Hope this helps .
    'Bishal

  • CS4 - How to list files in order in 'Files view'

    Hi,
    I have numerous websites but some of them do not list the folders/pages order in the file view.
    Normally I have the folders at the top followed by the pages as per screen shot 1.
    I have tried refreshing the folder but no joy and I have gone to the master folder with the website and listed the files as 'details' as per my ok websites but still does not work.
    Any suggestions please.
    Thank you.
    Steve
    Screen shot 1 - CORRECT
    Screen shot 2 - COMPLETE MESS

    That second one is likely correct, listing files alphabetically by size.
    Clicking the heading "Local Files" should fix it.
    EDIT: If you click the Expand button in the files tab, it will give you more headings you can sort your files by...
    Local Files (alphabetical), Size, Type, Modified (date) and Checked Out By are the default possibilities.

  • BAPI for getting  list of repetitive order

    Hi,
    Can anybody say
    What BAPI is used to get the list of repetitive order...

    Boss,
    ISU_DB_ERDK_SELECT_VKONT
    If you see the function module table parameters you will get to know.
    Pass the contractaccount into ISU_RANGES to get the invoice documents.
    Regards,
    Shiva Kumar.

  • How To: Sort Numbers in Ascending Order in a Generated List

    Greetings! How do I set up a Generated List of Paragraphs so that it sorts in true ascending order? What I want is:
    1.1
    1.2
    1.3
    1.4
    1.5
    1.6
    1.7
    1.8
    1.9
    1.10
    I have tried every trick I can think of with the sort order listed on the reference page. But all I can get is something that sorts by individual number (ignoring the numeric value) like:
    1.1
    1.10
    1.11
    1.2
    1.20
    1.21
    1.3
    Any help is much appreciated!

    Hello there, Michael! Thanks so much for looking at my post! Alas, the LOP will not work. I should have explained more, but it was so complicated I thought folks would give up reading.
    Here's the best I can render it without getting permission to share a good example document. I do not blame anyone if it's too cumbersome or convoluted to wade through...
    This is a requirements document which has sort of a "legal" tinge to it--as the document evolves we must maintain traceability for individual requirements. This means, for example:
    Version 1 - I have requirements 1 and 2.
    Version 2 - I need to add a new requirement, which should appear before requirement 1 in the document. Even though it comes before requirement 1 in the document, numerically it will be requirement 3 and requirement 1 will remain requirement 1.
    Version 3 - I need to remove requirement 2. Even though I now have only 2 requirements, their numbers will not change (they remain requirements 1 and 3, appearing in reverse order).
    Version 4 - I need to move requirement 3 to be after requirement 1. Again, the requirements keep their original number, even though their position has changed and there is no longer a "requirement 2" number in use.
    Originally, I told the team (I'm doing this for a different dept), that they would have to hand-number requirements, which they did for a while. But that was getting very cumbersome, and the scenarios above are limited to one or two occurrences per document. So I created an auto-number sequence for them to use in the initial version and added a little smoke-and-mirrors work process to take care of changes in later versions. The last bit of chicanery I cannot get to work is the index...
    Even if there are no changes to the requirements after the initial version, the index still does not sort in ascending numeric order. It was working with the hand-numbered requirements because they were using leading zeros. But without being able to include leading zeros in the auto-numbering formats (I tried the "use a zero as a tab leader" solution and like to have thrown my new monitor out of the window), I cannot find a solution.
    Or rather, I think the solution is "you have to hand-number requirements".
    For anyone who has made it this far, I truly appreciate your time and patience!
    SFT

  • How to display Column List (Search Bar - Do Not Display) in Ascending Order

    Hi,
    I am having a Interactive Report..
    In the Search Bar we have Select Columns, under that we have Do Not Display.
    where all the columns (currently not displayed) are listed.
    How can we display these columns in Ascending order
    Thanks,
    Deepak

    Do you want to display these columns in the IR?
    If yes. Select the column you want to display and click the the '>'.
    In the interactive report regions - source, where you have your query to select the columns use order by to sort them in assn order.
    Do you want to keep these columns as 'Do not display' and have them in assn order there?
    Select all columns to display and move the columns back to the 'Do not display' region one by one making selections in assn order.
    Or in the query select the columns in the order desired.
    I don't know if I am helping. I fell like I got your question all wrong. Still...
    Edited by: machan on Dec 11, 2009 11:01 AM

  • How to design and list out in ascending order from minimum to maximum with 6 inputs

    hi,
    How to design and list out in ascending order from minimum to maximum with 6 inputs in Labview? 
    This is easy to write it in C++, but not in Labview,may be I am new to Labview. i manage to get the 1st and the 6th after compared, but i cant get 2nd, 3rd, 4th, 5th.
    and can i write c++ language in Labview VI ?
    thanks.
    Solved!
    Go to Solution.
    Attachments:
    24-1-2012 display 4.vi ‏7 KB

    Try this:
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How to get a list of production orders for a work center?

    Hello SDN Community, 
    I have an requirement to display in a pop-up window a list of production orders for a work center.
    Does anyone know which screens/transactions would show this relationship?
    Or better yet, does anyone know how to demonstrate this from the tables themselves?
    Thank you,
    Dean Atteberry.

    Hello Mangalraj.S
    >>Goto COOIS-->For the field List select PPIOO000 - operations and layout -->standard layout
    >>and execute,by this you will be able to see the operations for each order and to which
    >>work center they are assigned.
    The system I am working on is ECC 6.0.
    For this system the values in the dropdown for the "List" field are "Capacities, Items, Order Headers, Sequences, Trigger Points, etc".  But nothing that says PPIOO000 - operations and layout.
    >>Or else in the in input screen of COOIS,enter the work center for which you want to see which
    >>are the production order's assigned and execute.
    For system I am working in, I do get a grid display when entering a work center.  It has columns like "Order, Material, Icon, Order Type, MRP cntrlr, etc."   But no column with Work Center.
    Any further insight into how to use this transaction to display a list of production orders for a work center would be greatly appreciated.
    Thank you,
    Dean Atteberry.

  • How to get Operation wise Time for a list of Production Orders

    Dear Sir,
    We have a list of Production Orders numbers and need to know the operation wise time duration for these production orers (off course the desired time is same as mentioned in the routing for the relevant component)
    Kindly guide us as how can we get these timing details .
    Rgds
    Sonia agarwal

    Sonia,
    I hope your are refering to setup time, process time, teardown time in the production order.
    use report COOIS for it.
    In the 'List choose operation.
    Give input for the production orders in the slection scren. Execute.
    In the report select the columns as per your requirement.
    Hope this helps you.
    SmanS

  • How to sort  the arry value in ascending order

    I have a string array where i need to sort the below values in ascending order in the same format...can anyone give me clue on this?
    9.3
    3.1
    9.1
    19.1
    19
    9.4
    9.1.1
    the sorted order should be
    3.1
    9.1
    9.1.1
    9.3
    9.4
    19
    19.1

    You may have easier luck writing your own comparator for this. These are headings in a table of contents, right?
    Write a comparator that tokenizes a string on the '.' character, or use a StringBuffer to remove them, and then order the elements according to the combined numbers. Since alphanumeric would order this list as you want it anyway you could just order that way once the '.' are removed.
    In other words your comparator would do this in the "compare" method:
    public class MyComparator implements Comparator, java.io.Serializable {
    private static Comparator stringComparator = java.text.Collator.getInstance();
    ...constructor(s), your own private "instance" variable of type MyComparator, a getInstance() method of your own, yadda yadda...
    public int compare(Object item1, Object item2) {
    try {
    value1 = removePeriods((String)item1);
    value2 = removePeriods((String)item2);
    if (value1 == null) {
    return (value2 == null) ? 0 : (-1);
    return compare(value1, value2);
    } catch (ClassCastException cce) {
    System.err.println("Wrong Object Type, JackAss!");
    protected int compare(String str1, String str2) {
    return MyComparator.stringComparator.compare(str1, str2);
    private String removePeriods(String value) {
    StringBuffer sb = new StringBuffer(value);
    int decimalIndex = value.indexOf('.');
    while (decimalIndex != -1) {
    sb.delete(decimalIndex, (decimalIndex + 1));
    }

  • How do I change the "Attach File" list from icons in alpha order to a list in chonological order?

    When I want to attach a file to an email message, it's usually the last file I worked on. Firefox used to display the items as a list in chronological order, with the most recent item at the top. Now it displays icons (which I hate!) in alpha order, which is soooooo not useful. I think this change may have occurred after the last update I loaded for Firefox. I'd appreciate any suggestions on how to get back to my original format. Thanks!

    OOPS! Looks like this is happening in Word as well, so it's not a Firefox issue. ... but I still can't figure out how to change it. Any suggestions?

  • How do I rearrange the order of items in a reminder list?

    How do I rearrange the order of items in a reminders list?

    ICal Reminders won't sort on the actual device it was intended for - the Iphone
    I just talked to Apple Express service over this problem.  I went to the trouble of transferring my to-do list onto icloud Reminders - where each item asked for a priority ranking and where you are then given options for how to sort  all the Reminders you entered - so that it can actually be useable as any Calendar/time management system would be.   I chose "by priority" of course, but you can also choose alphabetically, etc.  It must be said, at least to Apple, apparently, that the point of doing all this is so that the Reminders are available on your actual device - my iphone.  The Reminders all synced immediately to the Iphone.  However, the Reminders list is an unsorted jumble on my iphone.  Even when I tap out a Reminder on my iphone itself and choose a priority, the item remains at the bottom of the list as the last thing I typed in.  Apple Express Support "explains" that the priority ranking and the sorting choices are "not supported" on the device you want to use them on - the iphone.   They offered me "an article" that explains this in detail.   In other words, engaging with the Reminder function and choosing priorities and choosing sort orders is all just a cruel joke wasting your time.  I would have been better off just printing off my Reminders list on paper and circling the high priority items in red ink.  Oh - but you can't print it out either.
    Unbelieveable.  Apple's ICal Reminder function actually and actively leads you to engage with completing details and choices that don't even function, or in other words - aren't "supported" on the Apple device they are stated to be designed for.  Is there a device on which this function is actually supported?  "Not at this time"
    The only way to have your to-do list sorted on the iphone is to assign a calendar date for each one of them and then they only appear on that specific date.  You would not be able to view your whole list in anything other than the order you happened to enter the items.  No calendar/time management system I know of makes you put a date on every item in a  task list - some tasks have a due date, but most don't.  And every calendar/time management system allows you to sort your list, or view your list in a sorted order.   And print it out also.
    Apple advertises this Icloud Ical/Reminders system as a time managment tool and fails to tell us that vital functions don't even work on your iphone.

  • 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

Maybe you are looking for