[solved] xfce menus suddenly exhibit odd sorting order

Earlier today, out of the blue, the icons in my xfce applications menus have taken on a strange ordering. Not the top-level menu, because that's hard-coded.. But, for instance, in the Accessories menu items which are lowercase (such as medit) are sorted at the bottom of the list instead of alphabetically.
I suppose that I could edit the desktop configuration files and capitalize everything, but I know that will break anytime that application is updated -- so I'd rather not do it that way.
Normally, when the menu starts acting up a reboot or log off/on will fix it. However, I have been unable to figure out why this has started happening and googling the issue has been fruitless.
Has anyone else suddenly had this happen?
Last edited by gilmoreja (2012-09-01 09:23:13)

The desktop files that don't get overwritten are supposed to go in ~/.local/share/applications. This directory is part of the standard just like /usr/share/applications so all that is needed to replace something is
<Include>
medit-usercreated.desktop
</Include>
<Exclude>
medit.desktop
</Exclude>
in the menu file.

Similar Messages

  • [SOLVED] comm: file 1 is not in sorted order (yaourt?)

    hi,
    when i install packages in yaourt it installs them fine and then echoes this error...
    (1/1) upgrading tdb [#################################] 100%
    comm: file 1 is not in sorted order
    got no idea what this means and installing/removing works fine with pacman.
    already did pacman-optimize, no change.
    any ideas?
    Last edited by konni (2009-02-25 20:40:30)

    nevermind. updating yaourt to 0.9.2.5 solved it.
    wonder why i didnt do that at once.
    Last edited by konni (2009-02-25 20:40:17)

  • Album sort order suddenly gone crazy iTunes

    G'day people
    For some reason, the last couple of albums I've downloaded from the iTunes store, to my iTunes, displays those albums groups by artist instead of album. Even when I select them an manually change the sort order it makes no difference.
    Pre-existing albums already in iTunes are not affected, just newly downloaded. This is also happening with albums I purchase directly from the iPhone and sync back to iTunes on my Mac.
    Has anybody else come across this problem and have any suggestions on how I can fix it?
    Cheers
    Al

    Figured it out. I added "Various Artists" in the Album Artist field for every track and it then sorted them all together.

  • [SOLVED] Xfce and bus issues

    Long story short, I updated Xfce to 4.8 few days ago, and everything went well. I was running my basic programs and VM during these days.
    But today, all of a sudden, some programs didn't launch anymore. xfce4-mixer quit with a "Bus Error" message, and many other things started failing. After a reboot, it just got weirder: NMApplet appeared in the tray and displayed my network (wireless), but clicking it just "freezes" the icon. Aside from that, xfce wouldn't load my keymap (es), instead it defaults to a "us" keymap.
    The only packages I updated today were a few python and power management packages. Downgrading these (and dbus) didn't help.
    Also, X terminals (xfce's terminal, tilda, etc) behave strangely when scrolling back: A few lines are displayed, but scrolling up further just displays empty space.
    No major configs were edited during this time. Googling a bit gave me results about dbus being twice on rc.conf, but that's not the issue. My current rc.conf has dbus and hal after it (Method 1 in archwiki). Excluding dbus (Method 2) doesn't change things. I also tried excluding hal (Xfce 4.8 doesn't require it anymore, correct?), but it's the same thing.
    Xfce itself seems to run sorta fine though: The shutdown command inside the DE works, and some apps do run (power management, xfce notes, notifications). Others give out several errors: Chromium for example says it "can't create a directory socket" or something (using another system right now, so I can't check), while avant-window-navigator gives out dbus and gconf errors.
    dmesg doesn't display anything out of the ordinary at the end (the blank space in terminals issue doesn't let me read too far back.)
    EDIT: A dbus-daemon process is constantly using 50% of the CPU. And the kernel is 2.6.36 (upgraded it quite some time ago, had no issues)
    Any ideas on how to proceed would be greatly appreciated.
    Last edited by GRem (2011-01-23 01:00:54)

    ...and I solved it.
    Since nothing would work, I decided to back up my system files and pacman cache, among other things. When checking my pkgcache folder size, I noticed that the / partition was at 100%...
    So running ncdu I find out slim had a 9.9 GB log for some reason. Deleted that, rebooted, and everything is back to normal.
    So now I mark this as solved, thankfully. Now the slim logs are not growing like crazy.

  • [SOLVED] XFCE customize menu help: applications and directory menu

    I've been trying to make some progress with customizing XFCE menus. There are two menus I'm trying to create, listed below.
    Yes, i have read http://wiki.xfce.org/howto/customize-menu
    No, I'm not saying I understood all of it.
    1. I want to have a custom Applications menu that lists all installed applications, without categorization. Preferably alphabetical. I'm guessing it has a lot to do with adding a lot of <include> directives.
    Here's what I've tinkered with so far, which produces categories of apps.
    <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
    <Menu>
    <Name>Xfce</Name>
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>
    <Include>
    <Filename>xfce4-run.desktop</Filename>
    </Include>
    <Layout>
    <Merge type="all"/>
    <Separator/>
    <Menuname>Settings</Menuname>
    <Filename>xfce4-run.desktop</Filename>
    </Layout>
    <Menu>
    <Name>Settings</Name>
    <Directory>xfce-settings.directory</Directory>
    <Include>
    <Category>Settings</Category>
    </Include>
    <Layout>
    <Filename>xfce-settings-manager.desktop</Filename>
    <Separator/>
    <Merge type="all"/>
    </Layout>
    <Menu>
    <Name>Screensavers</Name>
    <Directory>xfce-screensavers.directory</Directory>
    <Include>
    <Category>Screensaver</Category>
    </Include>
    </Menu>
    </Menu>
    <Menu>
    <Name>Accessories</Name>
    <Directory>xfce-accessories.directory</Directory>
    <Include>
    <Or>
    <Category>Accessibility</Category>
    <Category>Core</Category>
    <Category>Legacy</Category>
    <Category>Utility</Category>
    </Or>
    </Include>
    <Exclude>
    <Or>
    <Filename>exo-file-manager.desktop</Filename>
    <Filename>exo-terminal-emulator.desktop</Filename>
    <Filename>xfce4-about.desktop</Filename>
    <Filename>xfce4-run.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Development</Name>
    <Directory>xfce-development.directory</Directory>
    <Include>
    <Category>Development</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Education</Name>
    <Directory>xfce-education.directory</Directory>
    <Include>
    <Category>Education</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Games</Name>
    <Directory>xfce-games.directory</Directory>
    <Include>
    <Category>Game</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Graphics</Name>
    <Directory>xfce-graphics.directory</Directory>
    <Include>
    <Category>Graphics</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Multimedia</Name>
    <Directory>xfce-multimedia.directory</Directory>
    <Include>
    <Category>Audio</Category>
    <Category>Video</Category>
    <Category>AudioVideo</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>Network</Name>
    <Directory>xfce-network.directory</Directory>
    <Include>
    <Category>Network</Category>
    </Include>
    <Exclude>
    <Or>
    <Filename>exo-mail-reader.desktop</Filename>
    <Filename>exo-web-browser.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Office</Name>
    <Directory>xfce-office.directory</Directory>
    <Include>
    <Category>Office</Category>
    </Include>
    </Menu>
    <Menu>
    <Name>System</Name>
    <Directory>xfce-system.directory</Directory>
    <Include>
    <Or>
    <Category>Emulator</Category>
    <Category>System</Category>
    </Or>
    </Include>
    <Exclude>
    <Or>
    <Filename>xfce4-session-logout.desktop</Filename>
    </Or>
    </Exclude>
    </Menu>
    <Menu>
    <Name>Other</Name>
    <Directory>xfce-other.directory</Directory>
    <OnlyUnallocated/>
    <Include>
    <All/>
    </Include>
    </Menu>
    </Menu>
    2. I want to make a different Directory menu, possibly by implicating a custom Applications menu. If I could locate the .menu file for the Directory menu panel item, I would like to make minor adjustments to the menu, and invoke it through the Applications menu panel item.
    I should state that what I'm trying to accomplish is
    a) to remove the submenu-like options with the Directory menu (open Folder, open in Terminal) to have one-click to open the folder directory
    b) to add a label next to the panel icon (aesthetics), which would be accomplished through using the Applications menu panel item.
    Edit: clarity
    Last edited by heyitstallchris (2014-07-31 02:02:36)

    Firstly, I'll tackle menu 1.
    No need to create an include line for every .desktop file. Do the following:
    $ mkdir ~/.config/menus
    $ cd ~/.config/menus
    $ touch custom-apps.menu
    Edit the file we have just created and populate it with the following:
    <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
    "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">
    <Menu>
    <Name>Applications</Name>
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
    <DefaultMergeDirs/>
    <Include>
    <Category>X-Xfce-Toplevel</Category>
    <Category>Settings</Category>
    <Category>Accessibility</Category>
    <Category>Core</Category>
    <Category>Legacy</Category>
    <Category>Utility</Category>
    <Category>Development</Category>
    <Category>Education</Category>
    <Category>Game</Category>
    <Category>Graphics</Category>
    <Category>Audio</Category>
    <Category>Video</Category>
    <Category>AudioVideo</Category>
    <Category>Network</Category>
    <Category>Office</Category>
    <Category>System</Category>
    </Include>
    <Layout>
    <Merge type="all"/>
    </Layout>
    </Menu>
    Now just create an application menu panel item and point it to the custom menu file we just created.
    This will display every application installed on your system, and any custom .desktop entries you may create (as long as they are set in one of the categories in the menu file). Add or remove categories as you need.
    If you want to have the "Run Program" and other "Action" items that are in the default Xfce menu, add a category line for "X-Xfce-Toplevel"
    Alternatively, you can forego all the <Category></Category> lines and simply use <All/>
    [EDIT] and since this is using garcon (Xfce's menu library), the apps will be in alphabetical order [/EDIT]
    Cheers.
    Last edited by Padfoot (2014-07-17 09:42:16)

  • N9 Photo Gallery sort order - based on what?

    Hello,
    I am thrilled with my N9, but have one problem: I want to use the phone to keep not only photos made with it. I therefore saved extra photos in the Pictures folder. They appear in the gallery, but in a weird order, not based on either the name, EXIF date, modification date or creation date. Is there a possibility to sort them on either of these? All I want is to control the sort order. After all, it is MY gallery...
    On my previous phone (N8) sorting was based on the last modification date. Also not optimal (EXIF date would have been perfect) but still controllable.
    Solved!
    Go to Solution.

    Well, maybe those pictures were never edited outside the phone, I don't know.
    Anyway, I believe I found the explanation: I exported the photos from Picasa, maxing them to a resolution of 1600xXXX. This way all files were created... today. Nevertheless the EXIF information is correctly saved by Picasa, so Date Image Taken was preserved. Although I modified in all files the creation date to be equal to EXIF Date Image Taken (ACDSee/batch/AdjustTimeStamp) , and then also renamed all pictures based on that, the "new" creation date still remains saved somewhere in the picture files and the Gallery sorts the pictures on it! The pictures were sorted in the reversed order I exported them from Picasa... Bad.
    Anyway, since this is not a request forum, it would be futile to say (again) that Nokia should use the EXIF Date Picture Taken for picture sorting. So I don't say it (!).

  • Photoshop CS3 web gallery bugs(?); vanishing metadata, bad sort order

    Running OS 1.5.4 on 24" Imac, I'm attempting to generate a "horizontal slideshow" from bridge-selected files in Photoshop CS3.
    [Sounded like the problem in this post: http://www.adobeforums.com/webx/.59b5a9fe/2 but on re-reading I've decided it's different so I'm giving it it's own thread, with more detail...]
    Here's my experience:
    1) Description and title show up for a second on the first slide, then revert to just the blank template on that and all subsequent slides (title: [blank] description: [blank]....
    Hitting "refresh" produces the descriptive metadata for a tantalizing moment, then it' s back to the blank template for this and all subsequent slides. It does this both for Safari and Firefox.
    You can view this behavior in a slideshow at http://oasisdesign.net/projects/earthtoilet/
    If it asks for a password, use---
    user:earthling
    pass: draf1 )
    "preserve all metadata" is checked.
    I've tried all combinations of checking/ unchecking "title, description, filename" for labeling...also, making slideshows with just one or two slides to reduce the chance that it's a weird character issue of the type some other folks have experienced...
    2) additionally, the web gallery is not respecting the manual sort order in Bridge, which is the source of the files. The help files say the slideshow should follow the manual sort order in Bridge.
    3) Finally, metadata entered in bridge metadata tab sometimes vanishes, sometimes metadata entered in file info wouldn't show in the metadata tab.
    Thanks for your help!!
    Art
    BTW, here's the related issues I found:
    http://www.adobeforums.com/webx/.59b5a9fe/2
    ...After some investigation, I found that the descriptions were disappearing only for photos that had a Return / Line Break in the description. If you go back and make sure all of your descriptions are a single line, it works fine....
    =Don't have line breaks, nor "and" nor &...
    http://www.adobeforums.com/webx/.3bff9de1/0
    http://www.adobeforums.com/webx/.3bd62ec3/0

    OK...here's the hack I used to get around what I'm now totally convinced are program bugs and shortcomings relative to advertised functionality, for anyone else who has to deal with this, followed by my (suggested fixes to Adobe)...
    1) Sort everything the way you want in bridge.
    2) Make meta descriptions w/o weird characters (a warning here would be helpful)
    3) Use "batch rename," with "copy to another folder" to give the images totally plain vanilla, DOS-style file names (001.jpg, 002.jpg...). This solves most filename issues and the works around web gallery's failure to recognize bridge sort order in one go. Note that you can irrevocably screw up the names of all your original files if you're not very careful to COPY at this step.
    ([a] make the bridge sort work directly, as advertised, por favor. [b] add an error message or warning about file names such as 006-(2).jpg causing malfunction. A compassionate, low-effort short-term patch for Mac users of web gallery, especially since bridge generates that particular sort name itself invisibly and automatically if you move a file with the same name into a folder)
    4) Use "white on black" instead of bug-ridden "horizontal slideshow" (horizontal slideshow should be fixed or deleted from the next version...multiple slideshow options would be awesome, as they advance automatically at the max rate the user's bandwidth allows, a very attractive feature)
    5) Restrict all images to the same height so users can click *in the same spot* to advance the 200 images with less carpal tunnel (the advance arrow should *always* be in the same spot, for every web gallery, IMHO)
    Web galleries are a fantastic tool for sharing information easily...I hope to see some evolution in those great automatic updates someday...

  • Document library items are not displaying in sorted order in sharepoint 2013

    Hi,
    I have a document library , I am storing document sets on it.
    28326 items are there in the library.
    I have configured sort on Name columns. Initially items are displaying in sorted order like (A,B,C,D,E...)
    Now Items are not displaying in a sorted order it is displaying like (A, B,C,D,E,A,C...) like this.
    Please help me on this sorting issue.
    Thanks,
    Samir

    Are the documents displaying in your image inside the document sets?  If so then your sets (folders) are displaying in alphabetical order and the documents inside the sets are displaying in alphabetical order.  This is what i would expect.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • [SOLVED] XFCE Panel Icons

    Does anyone know why my panel icons are black?
    Like such: http://i.imgur.com/rhaLd.png
    I haven't migrated from any other DE, this started happening after I enabled Compiz on startup(https://wiki.archlinux.org/index.php/Co … icon.22.29).
    Any ideas on how to set them to white, or use the icon set from the Xubuntu panel?
    Thanks in advance.
    SOLVED: Elementary Xubuntu icon theme installed, needed to specify "Elementary Xubuntu Dark" vs "Elementary Xubuntu".
    Last edited by hakoda (2012-08-07 03:34:40)

    You can't actually move stuff freely in XFCE panels; moving only changes the order of things.  You have to use separators (which can be invisible and have the option to expand) to get stuff in particular places.  I have eight invisible separators on my panel, and the 'Window Buttons' item expands to fill all free space, allowing me to place things on the 'end' of my panel.

  • Wrong sort order

    iPhoto recently began reordering photos on its own. This started about the time I moved my library of photos from my old G5 to my new MacPro Quad Core. I have View/Sort Photos/ set to Manually for one of my albums and I've been adding photos to the end, the bottom of the album in thumbnail view once they've been imported. The next time I open iPhoto those and others added recently are at the top of the page, at the beginning of the thumbnails.
    I'm thinking that whatever file it is that keeps track of the sort order may be corrupted. Does that sound right? Any ideas on how to fix this problem?
    Thanks.

    Thank you.
    Actually there is no such exact option. There is a Repair the Database option, and one marked Rebuild the Database from the automatic backup. they are two separate options. Since I wasn't sure of the health of the automatic backup I selected Repair the Database. I've quite and restarted iPhoto a couple times. The first time I had to reorder one of the recently added photos. After that things seemed OK. I'll consider the problem solved, at least for now.
    Thank you so much!

  • Sort order of photos on iPhone messed up when photos stored on a NAS

    Sorting iPhone photos stored on a netfear readyNAS Duo under windows
    I have a set of photos taken with another camera which I sync to my iPhone 3 GS.  Previously I stored the photos on my windows pc and after syncing they were sorted on my iPhone  alphabetically.
    I then deleted the photos from my iPhone, deleted the iPod cache folder that was in the photo directory on my windows pc, and copied them over to my readyNAS duo.  The NAS ( network attached storage) is acessed over wired Ethernet via CIFS.  
    I then reimported the photos using iTunes, (which created a new cache folder on the NAS) and synced them back to my phone.  After doing this, the sort order for those photos on the phone seems scrambled.
    One other thing to note.  Previously the folder synced contained the photos.  Now the folder containing the photos is a subdirectory of the sync folder
    Now, I followed another post in this forum whereby the user, storing his photos on his windows pc, deleted his cache folder, resorted the photos via windows explorer, and imported them back in.  This solved his problem.  
    I tried these steps with the photos on the NAS and this did not work for me.
    Any ideas on how to keep my photos on the NAS and have them sorted properly on the iPhone?
    Brad

    I use iPhoto for photo storage on my Mac, and the photo placement/order in my iPhoto albums that I transfer to my iPhone match the photo placement/order with the albums in iPhoto.

  • Sort order in Library Module

    I am having a problem in getting the sort order I want in Library module.  I originally imported JPEG files into a subfolder "Best Of".  I then returned to some of those photos (the RAW file) and developed them, then exported them as JPEG files to the same "best of" subfolder.  Although I have specified "capture date" as the sort criterion, the photos are displayed with the first batch of JPEG files in order shot, followed by the second batch of JPEG's that I developed, also in order shot.  As a result, all the developed files appear toward the end of the film strip, not in the actual order shot.  I would appreciate any tips.

    I can't replicate this issue with my Lightroom 5.5 on Windows 7
    However, if you don't mind me thinking out of the box, it seems like you are doing a lot of work to obtain a result that can be done much simpler, if you are willing to use a collection for this purpose. Simply drag the edited photo into a "Best Of" collection in Lightroom (no exporting needed), and you shouldn't have any trouble getting the proper sort order inside the collection. That's a lot less work than exporting! Saves disk space too! (And bvefore you object and say you have reasons why you need these in a folder for non-Lightroom purposes, that's easily solved by using a collection ... just do the export from the collection into a "Best Of" folder)

  • Predefined sort order of columns

    Hi,
    when my Discoverer users add columns to their tables they expect a certain sort order without having to press the 'sort button' or use the 'edit sheet dialog'.
    My only idea so far is to use a custom folder and ORDER BY in the SQL.
    Is there any better way to achieve a certain predefined sort order?
    Thanks
    Franziska

    While creating calculations and adding sorts on all of the columns will solve the immediate issue, every new worksheet will require the users to go through the same steps. It also sounds like your users actively create workbooks and sheets as needed, and these steps will have to be repeated.
    Something I thought of this morning may (or may not) work, and unfortunately I do not have time to test it today. But ... what if you created a view with an ORDER BY clause to sort the data as you wanted it sorted. In theory, the results should be returned ordered, without having to add any sorts at the Disco level. Since there is a fair amount of work in "retooling" a BA to use the views, it would be good to do a small proof of concept. Like I said, it might not work for a variety of reasons, and I am not sure what would happen if a user added a sort in Disco, or when two folders were joined.
    If it works, though, the sorting would be performed at the database level, with no additional sorting in Disco, and adding and removing columns from a report would have no impact on the sort.
    Then again, it might not work at all.

  • Custom Sort Order in Dropdown list of translate values

    Peoplesoft sorts the dropdown translate values in ascending order by default. I wanted to change the sort order. For example:
    The translate values in alphabetic order are:
    Andrea
    Baluch
    Others
    Shumi
    I want this "Others" as the last value. So the drop down should display like this:
    Andrea
    Baluch
    Shumi
    Others

    From a document I had created ...
    This odd behavior of PeopleTools however can be overridden by implementing a few lines of JavaScript and PeopleCode.
    The approach is quite simple and summarized briefly as below:
    1.     Concatenate the value-description pairs of the dropdown list into a single string separated by a pipe “|” as delimiter (in case other delimiter is used the script shown below in Step 4 has
    to be accordingly modified) in the sequence in which it should be displayed on the page.
    2.     While concatenating, make sure to place the value first and then the description, these being separated by the delimiter. Example: “01|”|”January”|”02|”February” …and so on.
    3.     Pass this string as a parameter to an HTML definition through a GetHtmlText function. This HTML definition in turn will a have a JavaScript logic to resolve this delimited string into
    meaningful value-description pairs and use them to override the intended dropdown list.
    Below are the steps in detail:
    Step 1:
    Find out the html element-id for the dropdown field from the html source-code of the PeopleSoft page from the browser. In HTML, the tag for a dropdown field is <select> </select>
    The element-id is set by the id attribute of the <select> tag. This id would be used in Step 5.
    Step 2:
    Add a field of type Long Character to any work record that you may be using on your page for buttons, hyperlinks, etc.
    Step 3:
    Add an HTML-Area to the page (preferably alongside the dropdown field which needs need to be sorted). In the properties of the HTML-Area, assign the Record-field used in Step 2 above.
    Step 4:
    Create a HTML definition from the app-designer and add the below JavaScript code to it and save the definition.
    <script>
    var j=0;
    var str=new String('%bind(:2)');
    ar1=str.split("|");
    var fld = document.getElementById("%bind(:1)");
    fld.options.length = 0;
    fld.options[fld.options.length] = new Option('', '');
    while (j<ar1.length)
              fld.options[fld.options.length] = new Option(ar1[j+1], ar1[j]);                      
                    j=j+2;
    </script>
    Step 5:
    Write peoplecode on an appropriate event to generate the concatenated string of value-descriptions delimited by a pipe “|”. A pseudocode for the same is shown below. Here the HTML id for the dropdown field and the value-description string are passed as parameters to the JavaScript shown in Step 4; and JavaScript thus created after substitution of the Bind values is assigned to the value of Record.Field used in Step 2 & 3. The location of the below peoplecode may vary depending on the when the dropdown list needs to be sorted.
    Local string &strDropdownValues;
    &strDropdownValues = "1|" | "January|" | "2|" | "February|" | "3|" | "March|" | "4|" | "April|" | "5|" | "May|" | "6|" | "June";
    <Record.Field>.Value = GetHTMLText(<HTML.DPS_DROPDOWN_HTML>, "<DROPDOWN_ID>", &strDropdownValues);

  • Sort Order for a VARCHAR2 Column

    Hello Everyone,
    This is probably quite simple, however I cannot see it. I am trying to sort on a varchar2 column that has numbers, text, dashes, tildes, carets and underscores which are mixed to compose a wire number. I have come up with an order by that changes the sort order from alpha to numeric satisfying one portion of the requirement.
    select wirenbr,fromitem "from",frompin,diagnbr,sht,toitem,topin,effect
    from acft_wires
    order by decode(to_char(nvl(length(translate(wirenbr,'A1234567890','A')),0)),'0',lpad(wirenbr,18),wirenbr);
    The select returns:
    1
    2
    3
    20
    21
    200
    201
    1000
    A
    ADT1
    AEN1
    AE1
    AE9
    AFA
    B
    1A
    2U7230A-ZZ
    2000A
    213-22
    22X100A20
    220-11
    The customer preferred sort looks like:
    1
    2
    3
    10
    10A
    11
    200
    201
    201-01
    202
    1000
    1000A
    1001
    I will build a shrine in my hall of honor to this forum if someone can point me in the right direction on how to solve this problem.
    Thanks everyone for your help.

    ok, start with this
    order by
    translate(substr(wirenbr,1,1),'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-','0000000000ZZZZZZZZZZZZZZZZZZZZZZZZZZZ')
    , nvl(length(substr(wirenbr,1,instr(translate(wirenbr,'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-','1234567890XXXXXXXXXXXXXXXXXXXXXXXXXXX'),'X')-1)),length(wirenbr))
    , to_number(translate(wirenbr,'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ-','123456789000000000000000000000000000'))
    First, all that start with number go to the beginning and all that start with a letter go to the end.
    Next, sort by the length of the first numerical part, as per Al's first solution.
    Next, sort by the numerical part.
    I started getting what I think is the right sort by that point. However, I think that you'll also have to add
    stuff to sort by the alpha part, mine was
    , NVL(RTRIM(LTRIM(wirenbr,'0123456789'),'0123456789'),0)
    The biggest problem I see is all of the different number-letter-number
    number-letter-number-letter formats. How many levels of recursion you'll have to go through to get it perfectly sorted, could you have ZZ999ZZ99Z9Z9Z9Z99?
    Any ideas for breaking this value up?

Maybe you are looking for

  • Is there a way to create hyplinks in documents automatically with firefox, as you can with IE?

    Is there a way to create hyperlinks "automatically with Firefox, as you can with IE (with, for example, Ctrl + K, then go to the website, then back to the document, and it automatically populates the url)?

  • Multiple slideshows in the same page

    Hi! My page is so designes: - text - 4 images in slideshow - text - other 4 images in slideshow The problem is that i cannot put the second "row" of images under the second text box. When i try to drag the 4 images from the album to the page, they ar

  • Problem with earbuds

    I have an I pod shuffle, and there is a problem with my earbuds. The button that controls the volume and changing the song. It doesn't work too well, in that i have to hold the ipod in a specific position and turn the plug for the buds in a highly sp

  • XI Replaying Messages

    Hi, Just after a bit of advice. Theoretical scenario is : Unrecoverable system failure in the ERP system during batch window means that we have to recover to last backup which was taken immediately prior to the batch run. I therefore need to replay a

  • Stroke width profile doesn't mirror automatically

    I can't believe Illustrator doesn't do this automatically. If you create a stroke profile on one side of the stroke by holding Alt/ Option while dragging with the Width Tool and then mirror the object, the stroke profile doesn't mirror accordingly. Y