Name sorting

Hi,
I have CONTACT table, which contains Employees Details....
LAST_NAME is the column in that table...
values are like this
select last_name from contact order by last_name;
AA
AB
AC
Aa
Ab
Ac
Above is the output from the contact table.......
But My Client wants the sorting like this,
select last_name from contact order by last_name;
it should give sorting order like this as per my client request......
AA
Aa
AB
Ab
AC
Ac
I know that, oracle do sorting based on ASCII values..
Can we do sorting like the above as my client requested..i think it is not possible...

ya .....thanks for the reply.....
Front end application (siebel CRM) is using this table. users enters and sort the data using front end..
From Front end Application, user sorts the column last_name, then he should get the output like i said,
Just for example i have given, we dont know, user quries or sort on which column....10 columns are having varchar2 data type,
is there any parameter to set at Database level to get the output like the above???.
There might be so many tables having varchar2 data like the above, we can not give UPPER(column name) for the all columns of all tables....right...
How can i acheive this type of sorting???

Similar Messages

  • How to make Address Book obey Preferences? I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8  Address Book 5.0.3 (883) Preferences set at ... General First name following Last name   Sort for Last name Address Format Canada Font size Large Phone format set a

    How to make Address Book obey Preferences?
    I run MacBook Pro 4.1 laptop,  Mac OS X 10.6.8
    Address Book 5.0.3 (883) 
    Preferences set at ...
    General
    First name following Last name 
    Sort for Last name
    Address Format Canada
    Font size Large
    Phone format set at
    +1.123.456.7890
    When application quits - it's all forgotten and it self-resets to
    unwanted configuration.

    Whenever you remove system modifications, they must be removed completely, and the only way to do that is to use the uninstallation tool, if any, provided by the third-party developers, or to follow their instructions. If the software has been incompletely removed, you may have to re-download or even reinstall it in order to finish the job.
    Here are some general guidelines. Suppose you want to remove something called “BrickYourMac.” First, consult the product's Help menu, if there is one, for instructions. Finding none there, look on the developer's website, say www.brickyourmac.com. (That may not be the actual name of the site; if necessary, search the Web for the product name.) If you don’t find anything on the website or in your search, email the developer. While you're waiting for a response, download BrickYourMac.dmg and open it. There may be an application in there such as “Uninstall BrickYourMac.” If not, open “BrickYourMac.pkg” and look for an Uninstall button.
    If you can’t remove software in any other way, you’ll have to erase your boot volume and perform a clean reinstallation of OS X. Never install any third-party software unless you're sure you know how to uninstall it; otherwise you may create problems that are very hard to solve.
    Trying to remove complex system modifications by hunting for files by name often will not work and may make the problem worse. The same goes for "utilities" that purport to remove software.

  • IPhone photo album file name sort order

    I have a folder with photos in it on my Mac.  When I sync the folder to my iPhone and view the photos on the phone, the photos are not displaying in file name sort order.  The file names of the photos are numbers (001, 002, 003 etc.).  It seems the photos are being displayed in date created order and not in the file name order.  The album with photos on my Mac is arranged / sorted by the name when syncing.
    Is there a way to have the photos in the iPhone album displayed in file name sort order?
    Thanks,
    David

    Focus Point (not free, no ads) will allow you to rename the files, add descriptions, and sort in a variety of ways. But it won't let you do anything in the main screen except browse your photo albums or camera roll, select one, and then you can do a search within that album or camera roll--and then if and only if the photo has a filename or description can you search for it. Bottom line: be sure to give your photos a proper file name and add a description.

  • Non-English artist name sorting

    Hello! I just bought my iPod Touch today, and it's my first ever iPod so i'm still getting used to it. I have a question, though, regarding how artists are sorted.
    I bought my Touch in Japan (finally found a store with stock!), and I would say 90% of my music is in Japanese. However, the artists whose names are written in kana/kanji just get lumped at the bottom past "Z" and under the "." part of the alphabet, rather than either being appropriately sorted in under the appropriate English letter, or having their own kana section in the list.
    Is this just how iPods are, or is there something that I can do to have them sort in properly?
    Thanks,
    Matt

    the artists whose names are written in kana/kanji just get lumped at the bottom past "Z" and under the "." part of the alphabet, rather than either being appropriately sorted in under the appropriate English letter, or having their own kana section in the list.
    I'm curious -- does Windows Vista sort them the way you want them in iTunes or elsewhere? As far as I know, the international standards for sorting multilingual lists would always keep different scripts separate, and follow Unicode order for example for Kana and then separately for Kanji.
    http://www.unicode.org/charts/collation/

  • Mail: Sending, with recipient names sorted alphabetically

    When sending to a large group, after typing a group name in the cc/bcc field, I want to remove some recipients. It is much easier to do this if the recipients are sorted alphabetically. How do I force alphabetical sort (either ascending or decending)?

    When sending to a large group, after typing a group name in the cc/bcc field, I want to remove some recipients. It is much easier to do this if the recipients are sorted alphabetically. How do I force alphabetical sort (either ascending or decending)?

  • Artist Name Sorting

    Is there a way to sort my iTunes library (both on the Mac and iPhone) by the artist's last name? For example, Dylan instead of Bob, Lennon instead of John, etc.?

    Yes, change the *Sort Artist* and *Sort Album Album* to, for example, *Dylan, Bob*. You can do this for a single track, choose one he also composed and change *Sort Composer* too, then right/option/cmd-click on that track and click *Apply Sort Field > All Matching Fields* which should update every other Bob Dylan track in your library.
    Note there is a little organisational bug in current builds which might mean that the artist's name doesn't move in the column browser until you close and reopen iTunes.
    See http://samsoft.org.uk/iTunes/grouping.asp for general tips.
    tt2

  • First name last name sort order-how to correct on iphone

    hello all.
    i have mobile me (hate that name) set correctly with the sort order of first name first in my extensive contacts list and the same in my address book on my main mac, yet my new iphone stubbornly refuses to order the contacts correctly, instead listing names by second name. as a result i am finding it almost impossible to use effectively as i know very few people by their last names.
    help!
    thanks

    I go to Settings/Mail,Contacts,Calendar. Then scroll down to bottom choices of Contacts. Set both Sort order and Display to Last, First. It worked for me.

  • Sorting string like windows file name sorting

    Hi everybody, I have a simple question.
    I was trying to sort some file name in java
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    But if i enter those strings into an Arraylist and use Arrays.sort or Collections.sort, the result is
    1.txt
    11.txt
    2.txt
    a(1).txt
    a(11).txt
    a(2).txt
    a.txt
    Is there a way to achieve the string sort similar to windows rather than aplhabetically like the default sort of Arrays/Collection.
    I have done some searching but only found problem regarding to different language character sorting which can be achieved using Collator but this was not my case. Has anybody encounter this issue ?
    Any help is greatly appreciated
    regards
    Hendra Effendi

    ballistic_realm wrote:
    Let say we have a list of string which are :
    1.txt
    a.txt
    2.txt
    11.txt
    a(1).txt
    a(11).txt
    a(2).txt
    If i convert those strings as file names, and sort it by file name in the windows explorer the result is
    1.txt
    2.txt
    11.txt
    a(1).txt
    a(2).txt
    a(11).txt
    a.txt
    ...Not sure, but wouldn't Windows sort it like:
    1.txt
    2.txt
    11.txt
    a.txt
    a(1).txt
    a(2).txt
    a(11).txt
    If so, the try something like this (UNTESTED!):
    class WindowsFileNamesComparator implements Comparator<String> {
        public int compare(String a, String b) {
            String[] tokensA = tokenize(withoutExtension(a));
            String[] tokensB = tokenize(withoutExtension(b));
            int max = Math.min(tokensA.length, tokensB.length);
            for(int i = 0; i < max; i++) {
                if(tokensA.equalsIgnoreCase(tokensB[i]))
    continue;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\D+"))
    return -1;
    else if(tokensA[i].matches("\\D+") && tokensB[i].matches("\\d+"))
    return 1;
    else if(tokensA[i].matches("\\d+") && tokensB[i].matches("\\d+"))
    return Integer.valueOf(tokensA[i])-Integer.valueOf(tokensB[i]);
    else
    return tokensA[i].compareTo(tokensB[i]);
    return tokensA.length - tokensB.length;
    private String[] tokenize(String s) {
    List<String> tokens = new ArrayList<String>();
    Matcher m = Pattern.compile("\\d+|\\D+").matcher(s);
    while(m.find()) {
    tokens.add(m.group());
    return tokens.toArray(new String[]{});
    private String withoutExtension(String s) {
    int lastDot = s.lastIndexOf('.');
    return lastDot < 0 ? s : s.substring(0, lastDot);

  • Name Sort -List View- Not Displaying  As Expected

    If I create several folders inside a main folder that is sorted by name - ascending - I get odd results in terms of the sort order - it seems to be dependent upon the length of the string - or actual numeric real numer (4444 is bigger than 888) in addition to the alphabetical aspects - especially when dealing with numbers only. For example - this is the order I get with the following folder names:
    1
    7
    8
    77
    888
    4444
    11111
    Q: What is a logic behind this odd sorting order? is there any way to control it? I would prefer that it would be more alphabetical - for example anything that starts with the number one would be together like:
    1
    11111
    4444
    7
    77
    8
    888 ..... this type of thing etc.....

    Thanks for the info Malcolm & Tom.
    From: How Finder lists items that are sorted by name (Mac OS X)
    Location: http://docs.info.apple.com/article.html?artnum=300989
    Note: If you select all these items in the Finder window (Command-A), copy their names to the Clipboard (Command-C), and then paste them into a text document (or email), they will appear in a slightly different order.
    Q: What is the logic behind this 'slightly different order'?

  • Playlist name sorting question

    First off, sorry if this has been discussed before, I couldn't find it anywhere.
    My question is, is there any way to sort my playlists via a "Sort Name" option or something so that a playlist starting with 'the' (for example, "The Letter Black") will be sorted, in the case of the example, under 'L' instead of 'T'? Thanks in advance.
    Blessings.

    Sorry, there are no controls about the sort order of playlists. They go folders, smart playlists, and regular playlists, with a lexical sort in each.
    However, you don't need to create playlists for individual artists and albums. You can easily get to them by the column browser. To turn it on, click View > Column Browser > Show. Then type "lett" in the search bar and you will be right there.

  • Cross-tab column name sorting

    Hi
    I created a cross-tab report in Bi Publisher, the sorting in the column names is sorted in alphabetical order. How do I customize this in the order I expected?
    Thank you in advance,
    Jean

    Thank you Jorge!
    I used the pivot table to create the template in word. I check the link and it is what I need. But the template I created is so different. I am very new to BI Publisher. the following is the what I have in the field browser:
    crosstab:c547;"//ROW";"ETHNIC{,o=a,t=t}";"S_TYPE{,o=a,t=t}";"EMP_ID";"count"?>
    <?horizontal-break-table:1?>
    <?for-each@column:$c547//C1?>
    <?./H?>
    <?end for-each?>
    <?for-each:$c547//R1?>
    <?./H?>
    <?for-each@cell:.//R1C1?>
    <?./M1?>
    <?end for-each?>
    <?./T1?>
    <?end for-each?>
    <?for-each@cell:$c547//C1?>
    <?./T1?>
    <?end for-each?>
    <?$c547//M0/M1/T?>
    How do I make the S_TYPE in my order, like the sample you gave me (Wednesday before Thursday)?
    Thanks,
    Jean

  • User name sorting

    How do I get user's names to sort by Last name, First name
    not first name, lastname. Also when in a meeting the name are
    posted this way as well. my user are military and need to look like
    this in a meeting:
    LTC Smith, John G5 OPS

    Any idea? I supposed that it should be sorted by displayname atribute (i.e. <lastname><space><firstname>). Do you think it is good presumption?
    Zbynek

  • [ZT] Song Name sort

    I think with the new firmware the sorting when you choose to open all songs for xx artistt
    are sorted with the filename rather than the tag name.
    Doesnt really bothor me just pointing it out.
    Might be a repost and sorry if it is.

    That's what I thought also, but when expanding the window, it still doesn't show. However on 2 older playlists, when I first got it, the name column shows, but not on the "master list" of all songs, and also not on new playlists.
    When I connect my wifes IPOD, same one, it shows up on every playlist and the master. I have had this issue for about 2 years through different Itunes versions. I wonder if it has something to do with the fact that when I first got the IPOD I used "music match" instead of Itunes? Or it could just be an issue with the IPOD. I've resisted doing a restore and wiping everything out as I've switched desktop computers and quite a few of those songs are not on my hard drive. I can work around it, but it's a hassle.
    I just figured out how to make the song name show, but using the "sort name" field, but now I'm wondering if there is a way to copy the name to the sort name field in a mass conversion instead of doing it one by one.

  • By Company name sorting ?

    On a Nokia N82, is there any way (or software) for the contact manager to sort by company name ??
    (my software is 20.0.062)
    Thanks for help and advice

    Yes, strange.
    Knowing that most of the contact managers contains company names (and you use it to search a company, not a name - you know your insurance person ? - ).
    Coming from SE (no regret though), I tought that some developper had made something to beef up the N serie OS for a pro usage (or for people with high number of company contacts).

  • File name sort

    Bridge sorts file names in what might be called "logical sorting." However I have many folders with numerical names (based on case numbers) and finding any particular one is like searching through a haystack. Is there any way to get Bridge to sort files I so I can easily find what I am looking for? 

    Just taking a guess here, but if wrong sure someone will correct my mistake.
    You sent the folder view which I believe is sorted according to windows standards like numbers first then alphebetical.  If this is important to you, experiment with exactly how the folders are arranged so you can find them easier.  Don't believe it is a random order.  There is a hierechial order with spaces, symbols, letters, and numbers that set the weight as to what is ranked first.
    In folders you can sort files by a number of different metadata fields, or sorting manually.

Maybe you are looking for