Sorting with Comparator, wrong order?

Hello,
i've a string array, and every string in this array in form of "Firstname [MiddleName] LastName". After i sort the array i get "List A" below, but i expect to get "List B". All "Alp"s must be together like dictionary order, isn't it? What cause this?
Regards,
List A:
Alp BBBBB
Alper KKKKK
Alper SSSSSS
Alp KKKKKKK
Alp OOOO
Alp ÖÖÖÖÖÖÖÖÖ
Alptuğ VVVVV
Alp YYYYY KKKKK
Alp YYYYYYYYYY
List B
Alp BBBBB
Alp KKKKKKK
Alp OOOO
Alp ÖÖÖÖÖÖÖÖÖ
Alp YYYYY KKKKK
Alp YYYYYYYYYY
Alper KKKKK
Alper SSSSSS
Alptuğ VVVVV
Code
import java.text.Collator;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Locale;
public class sort {
    static final Comparator<String> x = new Comparator<String>() {
        public int compare(String o1, String o2) {
            return Collator.getInstance(new Locale("tr", "TR")).compare(o1, o2);
    public static void main(String[] args) {
        String[] snames={
                 "Alp BBBBB",
                 "Alper KKKKK",
                 "Alper SSSSSS",
                 "Alp KKKKKKK",
                 "Alp OOOO",
                 "Alp ÖÖÖÖÖÖÖÖÖ",
                 "Alptu&#287; VVVVV",
                 "Alp YYYYY KKKKK",
                 "Alp YYYYYYYYYY"};
        List lsnames=Arrays.asList(snames);
        Collections.sort(lsnames, x);
        System.out.println(lsnames.toString().replaceAll(",", "\n"));
}

static final Comparator<String> x = new Comparator<String>()
        final private Collator collator = Collator.getInstance(new Locale("tr", "TR"));
        final private Pattern splitterPattern = Pattern.compile("\\s+");
        public int compare(String o1, String o2)
            try
                final String[] fields1 = splitterPattern.split(o1, 2);
                final String[] fields2 = splitterPattern.split(o2, 2);
                for (int i = 0; i < 2; i++)
                    final int v = collator.compare(fields1, fields2[i]);
if (v != 0)
return v;
} catch (Exception e)
// Possibly nothing to do here but, depending on how
// fatal one views it, one could throw
// an unchecked exception, just print a stack
// trace or totally ignore the exception.
// Since this is probably a system error, my
// preference is for
throw new Error("Problem in comparator", e);
return -1;
public static void main(String[] args)
String[] snames =
"Alp BBBBB",
"Alper KKKKK",
"Alper SSSSSS",
"Alp KKKKKKK",
"Alp OOOO",
"Alp ÖÖÖÖÖÖÖÖÖ",
"Alptu&#287; VVVVV",
"Alp YYYYY KKKKK",
"Alp YYYYYYYYYY"
List<String> lsnames = Arrays.asList(snames);
Collections.sort(lsnames, x);
System.out.println(lsnames.toString().replaceAll(",", "\n"));
}Edited by: sabre150 on Jan 6, 2009 10:37 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Need Help'bout Sort with Comparator!!

    First of all, the object that Im using is named as "Node". This object has String name, int Value and some kinda things.
    In the code below, I made one demantion object array ( Node[]) and filled it with unordered objects. And now I want to sort it by "int Value". There is a function "getVal()" which returns int Value.
    Node[] arrlist = new Node[size];
    Collect(current, arrlist); <-- this one collects unordered objects
    java.util.Collections.sort(arrlist, new Comp());
    and the class Comp is below
    import java.util.*;
    class Comp implements Comparator {
         public int compare(Object o, Object p){
              int answer = 0;
              if (o == p) {
                   return 0;
              int node1 = ((Node)o).getVal();
              int node2 = ((Node)p).getVal();
              return node1 - node2;
    I dont know much about the comparator. I dont even know what to return in thecomparator class. please help me guys!

    You are on the right track. In the compartor, you have to return a negative value, 0 or a possitive value depending on the two values you compare..
    some thing like this
    public int compare(Object o, Object p){
    //.... your codes here
    int node1 = ((Node)o).getVal();
    int node2 = ((Node)p).getVal();
    if( node1 < node2 )
    return -1
    else
    if( node1 > node2 )
      return 1;
    else
    return 0;
    [url http://www.feedfeeds.com/feedtv]FeedTV

  • MySQL PHP XML not sorted in the right order

    Hi, maybe someone can point out to me where I go wrong.
    I use an XML derived with PHP from a MySQL database to loop through a series of pictures.
    The XML I get from a database query gets sorted in the wrong order.
    I try to sort it by orde (is a columnname) but it keeps sorting by the ID.
    Any help is greatly appreciated.
    Thanks
    This is the PHP code to create the XML:
    $link = mysql_connect("localhost", "xxxx", "xxxxxxxxx");
    mysql_select_db("xxxxxxxxxxx");
    $query = 'SELECT * FROM gallery WHERE categorie = "dessin" ORDER BY "orde" ASC';
    $results = mysql_query($query);
    echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
    echo "<dataLoaded>\n";
    while ($line = mysql_fetch_assoc($results)) {
    echo "<galerie>\n";
    echo "<id>" . $line["gallery_id"] . "</id>\n";
    echo "<orde>" . $line["orde"] . "</orde>\n";
    echo "<image><![CDATA[" . $line["starturl"] . $line["image"] . $line["endurl"] . "]]></image>\n";
    echo "</galerie>\n";
    echo "</dataLoaded>\n";
    mysql_close($link);

    Thanks Kglad. Didn't work though.
    I also looked it up in the PHP reference with mysql_fetch_row you need to specify a single row I understand.
    In this case it might be many and the number differs.
    But I found the solution. I removed the quotes around orde and now it works.
    $query = 'SELECT orde, starturl, image, endurl FROM gallery WHERE categorie ="dessin" ORDER BY orde ASC';
    Nevertheless thank you and others for the great help on these forums.
    Jos

  • Toolbar buttons in wrong order on the server

    Time to call for backup.
    I have a couple of CSH FlashHelp projects where I specify the
    following toolbar button order in the SSL dialog:
    Contents (default)
    Search
    Index
    Glossary
    Print
    However, after the generated help goes to the various
    application builds, the buttons show in this order: Contents,
    Index, Glossary, Search. (Wrong order and no Print button.)
    I got a developer's help when we first found this problem,
    and he tracked the button order to the whcshdata.htm file. After I
    generate, it contains the following line, after all the CSH/topic
    associations:
    addWindow("[window
    name]",false,30,"10%","3%","60%","75%","[window title
    here]",2,0,"toc|ndx|gls|nls","toc");
    Note the wrong button order. It looks on the surface like
    it's ignoring my specifications. The funny thing is that even with
    this wrong order, the toolbar buttons show up correctly when I open
    the help from my hard drive by double-clicking the start page. The
    malfunction is when the help files are on a server.
    To fix this, I have to manually change "toc|ndx|gls|nls" to
    "toc|nls|ndx|gls|prt" and check that file in to the repository in
    order to get the right order and the Print button. (It's not a
    problem if I haven't introduced any changes to my map file, because
    then I just don't check whcshdata.htm in to source control. But if
    I have made changes, then I have to tweak the file again.)
    Anyone know what the problem could be? I've just rolled with
    it for months, ever since the problem popped up in one of the
    production systems and we fixed it with the manual tweak. But I'd
    like to get to the root of this if possible.
    Thanks all,
    Ben

    The thing to check would be to look on your iTunes at home on your desktop and check that the songs are ordered correctly there. One thing with renaming double cd sets (as I also do) is that sometimes the track numbers get jumbled.
    If you select the offending album in iTunes, click on the header bar where it says 'name' (above the song titles), you'll see that part of the bar turn blue and iTunes will jumble the tracks into a random order.
    Click on track# to reorder them 1,2,3 etc. Sync these changes back to the iPod.
    Incidentally, there can be problems associated with iPods and network drives. See this.
    Strange iPod behavior.

  • Replace default table sort with order by on the view object

    The Jdeveloper help for af:table says:
    If the underlying model is not a CollectionModel , the Table automatically examines the actual data to determine which properties are sortable. Any column that has data that implements java.lang.Comparable is sortable. This automatic support cannot be nearly as efficient as coding sorting directly into a CollectionModel (for instance, by translating the sort into an "ORDER BY" SQL clause), but is sufficient for small data sets.
    I have a database table with varchar2 columns that can contain string, date or number values. So in the af:table I want to sort the columns either in string, date or number order.
    I tried creating a sort listener and in that listener set the view object order by clause and execute the query, but it does not affect the row order - it is always sorted as a string. I assume that the collection is doing its sort after I do the query, and overwriting the query order. I have tried disabling the sort in the listener by setting the sortcriteria to null but it has no effect.
    Can anyone suggest how to stop the default sort re-ordering the rows, or else how to code sorting directly into the CollectionModel as suggested in the help.
    Hugh Nelson

    By running in debug I discovered that when you click on a column heading to sort by the column values it actually sets the order by clause on the view object and executes a query. The help says that the default sorting is not as efficient as setting the order by clause - perhaps the help is out of date because default sorting does set the order by clause.
    This means that you cannot do a column sort on a transient attribute. The attribute being sorted on must exist in the table/query.
    The easiest solution is to override the setOrderByClause method on the view object. The string parameter is the column to order by eg "COLUMNA". If this column holds date values I can change it to something like "TO_CHAR(TO_DATE(COLUMNA,'DD-MON-YYYY'),'YYYYMMDD')". For numbers I do "LPAD(COLUMNA,10,'0')".
    This works OK.
    Hugh Nelson

  • I setup my iCloud account on my iPhone 5 with the wrong e mail address, and I don't remmber the password, I reset my tel and erase all the information on my iPhone in order to try to set up a new iCloud account but when I restart I have a problem aga

    I setup my iCloud account on my iPhone 5 with the wrong e mail address, and I don't remmber the password, I reset my tel and erase all the information on my iPhone in order to try to set up a new iCloud account but when I restart I have a problem agaIn , they ask me to put again the old iCloud user account and password, what I can do in order to start the phone when I don't have the correct e mail and I don't remmber the passcode.?

    I have the same problem as the emails go to my iCloud account that I cannot access!!! I cannot answer the security questions as someone else must have set up my iCloud account. Nothing seems to work. It would be great if someone has some ideas as what can be done to recover the situation?

  • Have a problem with my MacBook Pro.5,3 and monitor.  Intermittently, the desk top screen becomes broken up into vertical sections, which appear in the wrong order, creating a haphazard picture.    The Apple icon, usually at top left corner, appears in to

    have a problem with my MacBook Pro.5,3 and monitor.  Intermittently, the desk top screen becomes broken up into vertical sections, which appear in the wrong order, creating a haphazard picture.
    The Apple icon, usually at top left corner, appears in top right corner  in a strip including all that left hand.  When the computer is restarted, the screen goes back to normal.  But I have to move the mouse to the far left of the screen and then up until it reappears on the far right hand side of the screen so that I can hit shut down button.
    It seems to happen randomly though always on desk top and sometimes when I move mouse and computer switches on from rest mode.   My large flat screen is relatively new.
    The video card on this computer, which is approximately two years old, is Nvidia FeForce 9400M.
    Any help would be welcome as my usual source of assistance is not available and I am not well versed in workings of the Mac although I have used one for many years.

    That sounds like a Hardware problem.
    You may be able to confirm that with Apple Hardware Test, or make an appointmenst for a free Genius Bar evaluation.

  • XML Parsing attributes with encoded ampersand causes wrong order

    Hi all,
    I am writing in the forum first (because it could be that i am doing something wrong.... but i think it is a bug. Nonetheless, i thought i'd write my problem up here first.
    I am using Java 6, and this has been reproduced on both windows and linux.
    java version "1.6.0_03"
    Problem:
    read XML file into org.w3c.dom.Document.
    XML File has some attributes which contain ampersand. These are escaped as (i think) is prescribed by the rule of XML. For example:
    <?xml version="1.0" encoding="UTF-8"?>
         <lang>
              <text dna="8233" ro="chisturi de plex coroid (&gt;=1.5 mm)" it="Cisti del plesso corioideo(&gt;=1.5mm)" tr="Koro&#305;d pleksus kisti (&gt;=1.5 mm)" pt_br="Cisto do plexo cor&oacute;ide (&gt;=1,5 mm)" de="Choroidplexus Zyste (&gt;=1,5 mm)" el="&Kappa;&#973;&sigma;&tau;&epsilon;&iota;&sigmaf; &chi;&omicron;&rho;&omicron;&epsilon;&iota;&delta;&omicron;&#973;&sigmaf; &pi;&lambda;&#941;&gamma;&mu;&alpha;&tau;&omicron;&sigmaf; (&gt;= 1.5 mm)" zh_cn="&#33033;&#32476;&#33180;&#22218;&#32959;&#65288;&gt;= 1.5 mm&#65289;" pt="Quisto do plexo coroideu (&gt;=1,5 mm)" bg="&#1050;&#1080;&#1089;&#1090;&#1072; &#1085;&#1072; &#1093;&#1086;&#1088;&#1080;&#1086;&#1080;&#1076;&#1085;&#1080;&#1103; &#1087;&#1083;&#1077;&#1082;&#1089;&#1091;&#1089; (&gt;= 1.5 mm)" fr="Kystes du plexus choroide (&gt;= 1,5 mm)" en="Choroid plexus cysts (&gt;=1.5 mm)" ru="&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (&gt;=1.5 mm)" es="Quiste del plexo coroideo (&gt;=1.5 mm)" ja="&#33032;&#32097;&#33180;&#22178;&#32990;&#65288;&gt;=1.5mm&#65289;" nl="Plexus choroidus cyste (&gt;= 1,5 mm)" />
    </lang>As you might understand, we need to have the fixed text '>' for later processing. (not the greater than symbol '>' but the escaped version of it).
    Therefore, I escape the ampersand (encode?) and leave the rest of the text as is. And so my > becomes >
    All ok?
    Symptom:
    in fetching attributes, for example by the getAttribute("en") type call, the wrong attribute values are fetched.
    Not only that, if i only read to Document instance, and write back to file, the attributes are shown mixed up.
    eg:
    dna: 8233, ro=chisturi de plex coroid (>=1.5 mm), en=&#1082;&#1080;&#1089;&#1090;&#1099; &#1089;&#1086;&#1089;&#1091;&#1076;&#1080;&#1089;&#1090;&#1099;&#1093; &#1089;&#1087;&#1083;&#1077;&#1090;&#1077;&#1085;&#1080;&#1081; (>=1, de=Choroidplexus Zyste (>=1,5 mm)Here you can see that 'en' is shown holding what looks like greek, ... (what is ru as a country-code anyway?) where it should have obviously had the english text that originally was associated with the attribute 'en'
    This seems very strange and unexpected to me. I would have thought that in escaping (encoding) the ampersand, i have fulfilled all requirements of me, and that should be that.
    There is also no error that seems to occur.... we simply get the wrong order when fetching attributes.
    Am I doing something wrong? Or is this a bug that should be submitted?
    Kind Regards, and thanks to all responders/readers.
    Sean
    p.s. previously I had not been escaping the ampersand. This meant that I lost my ampersand in fetching attributes, AND the attribute order was ALSO WRONG!
    In fact, the wrong order was what led me to read about how to correctly encode ampersand at all. I had been hoping that correctly encoding would fix the order problem, but it didn't.
    Edited by: svaens on Mar 31, 2008 6:21 AM

    Hi kdgregory ,
    Firstly, sorry if there has been a misunderstanding on my part. If i did not reply to the question you raised, I appologise.
    In this 'reply' I hope not to risk further misunderstanding, and have simply given the most basic example which will cause the problem I am talking about, as well as short instructions on what XML to remove to make the problem disappear.
    Secondly, as this page seems to be displayed in ISO 8859-1, this is the reason the xml I have posted looks garbled. The xml is UTF-8. I have provided a link to the example xml file for the sample below
    [example xml file UTF-8|http://sean.freeshell.org/java/less2.xml]
    As for your most recent questions:
    Is it specified as an entity? To my knowledge (so far as my understanding of what an entity is) , yes, I am including entities in my xml. In my below example, the entities are the code for the greater than symbol. I am under the understanding that this is allowed in XML ??
    Is it an actual literal character (0xA0)? No, I am specifying 'greater than' entity (code?) in order to include the actual symbol in the end result. I am encoding it in form 'ampersand', 'g character', 't character', 'colon' in order for it to work, according to information I have read on various web pages. A quick google search will show you where I got such information from, example website: https://studio.tellme.com/general/xmlprimer.html
    Here is my sample program. It is longer than the one you kindly provided only because it prints out all attributes of the element it looks for. To use it, only change the name of the file it loads.
    I have given the xml code seperately so it can be easily copied and saved to file.
    Results you can expect from running this small test example?
    1. a mixed up list of attributes where attribute node name no longer matches its assigned attribute values (not for all attributes, but some).
    2. removing the attribute bg from the 'text' element will reduce most of these symptoms, but not all. Removing another attribute from the element will most likely make the end result look normal again.
    3. No exception is thrown by the presence of non xml characters.
    IMPORTANT!!! I have only just (unfortunately) noticed what this page does to my unicode characters... all the the international characters get turned into funny codes when previewed and viewed on this page.
    Whereas the only codes I am explicitly including in this XML is the greater than symbol. The rest were international characters.
    Perhaps that is the problem?
    Perhaps there is an international characters problem?
    I am quite sure that these characters are all UTF-8 because when I open up this xml file in firefox, It displays correctly, and in checking the character encoding, firefox reports UTF-8.
    In order to provide an un-garbled xml file, I will provide it at this link:
    link to xml file: [http://sean.freeshell.org/java/less2.xml]
    Again, sorry for any hassle and/or delay with my reply, or poor reply. I did not mean to waste anyones time.
    It will be appreciated however if an answer can be found for this problem. Chiefly,
    1. Is this a bug?
    2. Is the XML correct? (if not, then all those websites i've been reading are giving false information? )
    Kindest Regards,
    Sean
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.InputSource;
    public class Example
        public static void main(String[] argv)
              try
                   FileInputStream fis = new FileInputStream("/home/sean/Desktop/chris/less2.xml");
                 Document doc = DocumentBuilderFactory.newInstance()
                 .newDocumentBuilder()
                 .parse(new InputSource(fis));
                   Element root = doc.getDocumentElement();
                   NodeList textnodes = root.getElementsByTagName("text");
                   int len = textnodes.getLength();
                   int index = 0;
                   int attindex = 0;
                   int attrlen = 0;
                   NamedNodeMap attrs = null;
                   while (index<len)
                        Element te = (Element)textnodes.item(index);
                        attrs = te.getAttributes();
                        attrlen = attrs.getLength();
                        attindex = 0;
                        Node node = null;
                        while (attindex<attrlen)
                             node = attrs.item(attindex);          
                             System.out.println("attr: "+node.getNodeName()+ " is shown holding value: " + node.getNodeValue());
                             attindex++;                         
                        index++;
                        System.out.println("-------------");
                 fis.close();
              catch(Exception e)
                   System.out.println("we've had an exception, type "+ e);
    }  [example xml file|http://sean.freeshell.org/java/less2.xml]
    FOR THE XML, Please see link above, as it is UTF-8, and this page is not. Edited by: svaens on Apr 7, 2008 7:03 AM
    Edited by: svaens on Apr 7, 2008 7:23 AM
    Edited by: svaens on Apr 7, 2008 7:37 AM
    Edited by: svaens on Apr 7, 2008 7:41 AM

  • A simple question about wrong sorting with multiple sort columns in Excel 2010

    Hi, everyone! I have encountered a problem that I don't know how to explain.
    So I post it here because I don't know if there is another more relevant forum...
    I have a data sheet with the students' scores for the course. 
    All the data were generated with the randbetween function,
    and pasted with the values.
    To rank the students by their performance,
    I did the sort with the column "total score" as the first sort-column
    and "final term" as the second.
    The weird thing to me is that the order of the data seems problematic.
    That is, all the rows are sorted correctly with the first sort-column.
    But for the rows with the same values of the first sort-column,
    there are some rows whose values of the second sort-column are out of order.
    (please look at the data file at
    www_dot_kuaipan_dot_cn/file/id_67204268108546068_dot_htm
    Please change the "_dot_" to the real literal dot.
    Especially the rows with 56.7 as the first sort-column value
    and some other values near the tail of the list.)
    I tried to manually input and sort the same values of both columns
    in a near-by region. The result was correct.
    When some friend copied all the data to paste in Notepad,
    and reload them in excel. The problem disappears.
    Some friend also tried to wrap a round function at the values of the 1st sort-column,
    the sorting order became correct!
    But they could not explain why either.
    How confusing! I even tried to swap the first and secod sort-column;
    the output was right.
    All the data were generated by randbetween function and pasted with values.
    Where could all the special characters, if any, come?
    Can anyone give me an explanation? I would be very grateful.
    Thanks in advance!

    Re:  Sort is not in proper order
    Sounds as if the data includes spaces or hidden characters that are affecting the sort.
    That is indicated by the fact that manually entering the data resolves the problem.
    Note:  You can use a public file storage website to hold your file and add the link to it in your post.
    Jim Cone
    Portland, Oregon USA
    Special Sort excel add-in (30+ ways to sort) - 3 week no obligation trial
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • WL6.1 inserts columns in wrong order with random nulls

    I'm in the process of migrating a WL5.1 EJB app to WL6.1 and I've come across a
    very frustrating and strange error. While executing my app, one of my session
    beans calls a (callable statement) stored procedure on SQL Server 7.0, but when
    it trys to insert a row in the database it inserts a few of the columns in the
    wrong order and one of the columns, oddly, is all of the sudden NULL.
    I've checked and double checked all SQL code and SPs on SQL Server and everything
    is correct. Plus, the app works perfectly on WL5.1. PLEASE HELP!
    Kindest regards,
    Paul

    Jane:
    I just created a test project with the Portfolio-Color theme. I selected text for the link item instead of the default button. I then created 10 slideshow links, placing them in two columns of 5 each. 1-5 and 6-10. After aligning by eye I was able to navigate down each column in order. However, when I dragged 10 video clips into a similar menu the navigation order went all over the place as you experienced. I've tried using the regular buttons with snap to grid enabled for importing. It appears that that theme wants to import across the top row first and then the bottom next. With only 5 items it puts two on the top and 3 on the bottom.
    You may have to go with three menus: the top menu has two folders, slideshows 1-5 and slideshows 6-10. Then place your slideshows in each folder accordingly and let it do the placement, either text wise or button wise.
    Either that or find a new theme what will work better with 10 items on a page.

  • Palm desktop calendar - in month view, event times are in wrong order!

    I use Palm Desktop 4.1.4 on my Windows XP machine (I don't own a PDA). I enter my appointments in Week view and they look fine, but when I go to Month view (I want to print this view), the events for a given day show up in the wrong order!
    For example, on one day I see:
    9a Event
    10:30a Event
    2p Event
    12p Event
    and on the next day I see:
    9a Event
    2p Event
    10a Event
    I tried changing things in Options and Preferences - no luck. I have messed around with it and can't figure out any weird pattern it might be sorting by (I've tried re-entering appointments to see whether it sorts by the last time they were entered/edited, and looked into whether it was sorting by category, length of event name, first digit of the time, length of time, alphabetically by event name, by whether it repeats/has a location/has a note/has an alarm/was entered by clicking once and typing or by right-clicking). It just seems baffling, and it definitely seems like a bug, since of course you'd want your events sorted by time.
    Does anyone know what's going on or have this problem?
    Thanks!
    Post relates to: None

    I had looked at this in response to another post, and didn't notice the same problem. But then I went back further and noticed it sure enough...it's only occasional.
    I haven't done any kind of analysis as you have apparently done, mostly because I don't really use the desktop application except occasionally.
    Thought maybe it sorts repeating events differently than single events, but I've seen it both ways, so that doesn't seem to be it.
    It doesn't bother me enough, but it certainly seems like it would warrant an email support request to Palm, to see if they have an answer.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • I have just put an audio book into my iTunes music library.  When I tried to transfer it to my iPod shuffle it rearranged the tracks so that they are in the wrong order.  How can I put them in the order they appear in the book?

    I have just put an audio book into my iTunes music library.  When I tried to transfer it to my iPod Shuffle it put the chapters in the wrong order i.e. Chap 1, Chap 10, Chap 11 etc. rather than Chap 1, Chap 2, Chap 3 ...  How can I get it to put them in the order they appear in the book?

    First, we need to know if the audiobook chapters are being treated by iTunes as music files or as audiobooks. If they are not audiobooks purchased from the iTunes store, they might be getting "shuffled". You will need to look at "File" - "Properties" (I think - I don't use iTunes under Windows - or right-click on the file and choose "properties") and look at the media type. If it is "Music", change it to "Audiobook". If this is not the problem, or does not fix anything, please post back.
    Actually, looking at your post again, a second thought occurs to me - assuming there are less than 100 chapters in the book, just renaming them with a leading zero on the first nine chapters might do it. A computer will alphabetically sort filenames in the order you quote (1, 10, 11, 12, 13, ... 2, 21, etc.) but a leading zero will fix that (01, 02, 03 ... 10, 11, 12)

  • BUG: LR displays fast FPS series  in wrong order

    I've taken some pictureseries with my Nikon D200 with fast continious mode (5 frames per second).
    When importing them into the LR library, some of the pictures (from the fast fps series) show up in wrong order (quite annoying).
    This does not apply to pictures from "normal" shootings, just the fast fps ones.
    This happens both in folder view and other views based on keywords etc.
    I assume LR displays the pictures according to time in exif info, and doesn't know what to do when the pictures have the same time info (which I guess happens at high fps-rates).
    But wouldn't it be logical when this issue accours, that LR would look at the filenames (of the conflicting files) and display pictures chronological based on numbering. Instead, it seemes to be making wild guesses.
    My files looks like this:
    YYYYMMDD_DSC####_more_info.nef
    Is this a known issue?
    regards Carl

    David,
    I think you're right. I do a lot of continuous stuff with my D200 and I noticed some time ago it writes the files "out of order" to the card. This is really a feature of fast digital cameras and not a bug in Lightroom, it's to do with the strategy the cameras use when you give them a lot of data, pause a moment, and then do it again while they are still writing to the card. "Creation Time" is really "Write-to-Card time".
    I really can't see how it's an issue with YYYYMMDD_DSC####, though; they could still be sorted on filename post-import, surely?
    I just did a test renaming _DH35222.NEF to bananas_DH35222.NEF in the operating system; LR blinked once then updated the name, so I don't really see why the renaming couldn't in principle be done after import by a little external script, with the LR database open.
    I can't help thinking that all this renaming and reshuffling is all just making work for oneself though. The files are stored in date-based folders by default, can be sorted on (among other things) filename and (best of all) can be browsed visually.
    Still, all progress depends on the "unreasonable man" who persists in adapting the world to himself, according to George Bernard Shaw.
    Damian

  • Songs in Wrong Order for iTunes 7

    I have my music sorted by album, and when I upgraded to the new version of iTunes, about ten or so albums are randomly in the wrong order. I have the track numbers listed next to each song, and they are correct, but for some reason they are ordered, for example, 3, 4, 5, 2, 7, 1, 6. When I sort by artist, they are in the correct album order again. I don't want these albums to be in the correct order only if I sort by artist or if they are in a playlist, I want to keep sorting by album. Also, going to Get Info doesn't help since the correct track numbers are listed, but they are still incorrectly ordered. Can anyone help?

    Hi Missara!
    Everytime I got an album sorting issue like yours, it had something to do with the information tag. In the new iTunes version, the album grouping have been modified.
    Select a whole album and do a get info on the songs. There you have to make sure that ALL album related fields are identical; i.e. Artist (if not, write an artist name in the Album Artist field), Album, Year, Disc Numbre from and Of, Track Number of.
    For all these fields, click the check box next to them if the field is blank. Sometimes if can even be a white space messing up.
    This should correct your situation.

  • Photos are show in wrong order

    Hello,
    I bought an iPod Touch 32 GB because I thought it's a good way to carry my pictures with me.
    The problem is that within the folders/albums the pictures are displayed in the wrong order. It's not chronlogically, by name or something else I can identify.
    What have I done?
    I'm using a XP laptop and my pictures are stored in several folders on a NAS. First I made sure that the pictures were sorted by "picture taken on". Then I selected the picture folder in iTunes and selected several subfolders to be transferred to the iPod. It took a while as we are talking of 15.000 pictures. Some of the folders have 10 or 20 pictures, some of the folders have 200 or even 400 pictures. It's important for me that they will be displayed in a chronological or by name. But I have the feeling that starting from a certain amount of pictures (like 30 or 40) it completely destroys the structure.
    What can I do?
    I hope I was able to make my point as I'm writing you from Germany and my English is not the best.
    Please help me to get this problem solved.

    FOUND SOLUTION  from another unhappy guy (forgot his name) but he was very kind in posting the solution after he broke his brain trying with the Support team  (?)
    in any case here is the solution:
    1 - in PHOTOS   check sync
    2 - DO NOT SELECT ANY Folders or files
    3 - let the phone do the sync
    4 - repeat the sync by selecting the folders you intend to sync
    It did worked for me....try
    good luck
    PS - I wish that the board could be monitored by Apple experts so that they may add valid
    solutions to problems rather then us going crazy looking for intelligent reply to questions!

Maybe you are looking for

  • How to use a clipping mask layer to a multiple base layers?

    Is it possible to use one layer as a clipping mask to a 5 different bottom layers.      What I'm trying to do is apply an adjustment layer to certain layers only. Is that possible? -Zeropan

  • BGP decision algorithm - help needed - stumped

    Hello gurus!  hoping for a BGP expert to chime in here. Im studying for my CCIE, and there is something in Jeff Doyle's Routing TCP/IP vol2 book that I just cant seem to figure out and its really stalling my understanding of the BGP path selection al

  • Duplicate Crawled Property Name

    Hello I added a terms as "Legal". Then I noticed that it is appearing twice as crawled properties as Legal (Text) ows_Legal_x0020(Text) - It seems like a internal name. Can anyone tell what is logic behind for creating two different properries? Secon

  • Material Ledger New Status - 05 "Period Opened Without Stock"

    Hello, We are thinking of implementing note 1120562 into our system and feel pretty comfortable so far, but I had one question that is stopping me.  If I implement this note and it applies the new status so that materials are not selected to run in t

  • MB51 Additional Fields

    HI All MB51 uses tables MSEG and MKPF. But we need to add the field LTEXT(description of cost center from table CSKS) and KTEXT(description of internal order from table AUFK). Efforts done: IMG -> Materials management -> Inventory Management -> Repor