DOM, and (not) sorting by Attribute name

I'm using XML files to store certian options for a program I'm making. The only problem though is that it seems as though the NamedNodeMap you get from calling node.getAttributes has the attributes in sorted order.
Namely it's sorted alphabetically.
This is not at all what I would like, it's pretty important that the attributes be in the order I wrote them, not sorted.
Is there another way I can do this?
I could always just have a text entry for the Attribute types, like
<?xml version="1.0" encoding="UTF-8"?>
<root>
AttributeType_1, AttributeType_2
<whatever AttributeType_1="whatever" AttributeType_2>
#And so on.
</root>
Or I could do any number of variations on that theme.

Here is some source code.
xmlGenerate.java
This will convert 2D arrays into XML Strings, or vice versa. There's a couple other things it does too, but that's the important part (
//import crap
import java.sql.Savepoint;
import java.util.*;
import java.awt.event.*;
import java.io.*;
import javax.xml.parsers.*;
import javax.swing.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.dom.*;
import javax.xml.transform.stream.*;
import org.apache.xml.serialize.*;
import org.w3c.dom.*;
import org.xml.sax.*;
//generates xml files
public class xmlGenerate{
public static final String PATH=SRJava.Constants.PATH+
"\\Editors\\CharacterGenerator\\";
* This method takes in stuff, the kind of stuff,the names of the
* attributes of that stuff, and returns XML
* The input is the stuff, and the output is
* a string which is the stuff in XML.
* Each row of the stuff represents the data of an Object
* Each column represents a specific value, which is specified by
* attrNames
public static String toXML(Object[][] stuff, String[] attrNames,
String type){
try{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.newDocument();
Element root = document.createElement("root");
document.appendChild(root);
//going thru each equipment to append to root
int entries = stuff.length;
int attributes = attrNames.length;
String tempStr;
for (int entry = 0; entry < entries; entry++){
Element a1 = document.createElement(type);
//set xml document
root.appendChild(a1);
for (int attr =0; attr < attributes; attr++){                   
//this gets the data from the xml
if (stuff[entry][attr] instanceof String){
tempStr=(String)stuff[entry][attr];
}else{
tempStr="";
a1.setAttribute(attrNames[attr],tempStr);
OutputFormat format = new OutputFormat(document, "UTF-8", true);
StringWriter stringOut = new StringWriter();
XMLSerializer serial = new XMLSerializer(stringOut, format);
serial.asDOMSerializer();
serial.serialize(document);
return stringOut.toString();
*fill in components
}catch (Exception e){
e.printStackTrace();
return null;
* From XML , returns the equipmennt
* Input is file and output is the data from the XML document
public static Object[][] fmXML(Node root){
//make double array
try{           
NodeList childNodes = root.getChildNodes();
Vector attrNodeVector= new Vector();
int entries=0;
boolean determined=false;
NamedNodeMap attributeList = null;
for (int index=0; index < childNodes.getLength(); index++){
Node node=childNodes.item(index);
if (node.getNodeType()==Node.ELEMENT_NODE){
entries++;
attrNodeVector.add(node);
if (determined==false){
attributeList=node.getAttributes();
determined=true;
String[] attrNames=getAttrNames(root);
int attributes=attrNames.length;
Object[][] stuff=new Object[entries+1][attributes];
//this value is so new entries can be added.
for (int attr=0; attr < attributes; attr++){
stuff[0][attr]="";
for (int entry = 0; entry < entries; entry++){
Element thenode=(Element)attrNodeVector.get(entry);
//make sure the node being looked at is the right kind.
for (int attr=0; attr < attributes; attr++){
//parseing goes on
stuff[entry+1][attr] = thenode.getAttribute(attrNames[attr]);
return stuff;
}catch (Exception e){
e.printStackTrace();
//there was some kind of error, return nothing useful.
return null;
//sorts the Nodes
private static Node[] sort(NodeList subsequent, String[] tags){
Node[] sorted = new Node[tags.length];
//looking through all the different nodes
for(int x=0; x < subsequent.getLength(); x++){
Node inOrder = subsequent.item(x);
String tag = inOrder.getNodeName();
for(int i=0; i<tags.length; i++){
if(tag.equals(tags)){
sorted[i] = inOrder;
break;
return sorted;
* output the xml document to a file
public static void save(String doc, String name){
try {
PrintWriter oF = new PrintWriter(new FileWriter(name), true);
oF.print(doc);
oF.close();
catch (IOException x){
System.err.println("There was a saving error");
//retreiving some data from an xml file
public static Node open(String file){
try{
//This code came from a guy called Rob Thorndyke.
Document doc = DocumentBuilderFactory.newInstance()
.newDocumentBuilder().newDocument();
File f=new File(file);
System.out.println(f.getPath());
// Step 2 is to get a Transformer object.
Transformer transformer =
TransformerFactory.newInstance().newTransformer();
// Step 3 is to set up Source and Result objects and use the
// Transformer object to do the conversion.
Source source = new StreamSource(new FileReader(file));
Result result = new DOMResult(doc);
transformer.transform(source, result);
//This code did not.
Node root = doc.getDocumentElement();
if (root == null){               
System.out.println("There is no root!");
return null;
return root;
}catch (Exception e){
System.out.println("Error in opening.");
return null;
public static String[] getAttrNames(Node root){
try{           
NodeList childNodes = root.getChildNodes();
Vector attrNodeVector= new Vector();
int entries=0;
boolean determined=false;
NamedNodeMap attributeList = null;
for (int index=0; index < childNodes.getLength(); index++){
Node node=childNodes.item(index);
if (node.getNodeType()==Node.ELEMENT_NODE){
entries++;
attrNodeVector.add(node);
if (determined==false){
attributeList=node.getAttributes();
determined=true;
int attributes=attributeList.getLength();
String[] attrNames = new String[attributes];
//get the names of the attributes
for (int attr=0; attr < attributes; attr++){
attrNames[attr]=attributeList.item(attr).getNodeName();
return attrNames;
}catch(Exception e){
System.out.println("Error in getting column names");
return null;
public static String getType(Node root){
if (root == null){               
System.out.println("There is no root!");
return null;
NodeList childNodes = root.getChildNodes();
Vector attrNodeVector= new Vector();
for (int index=0; index < childNodes.getLength(); index++){
Node node=childNodes.item(index);
if (node.getNodeType()==Node.ELEMENT_NODE){
return node.getNodeName();
return null;
// main method
public static void main(String[] args){
System.out.println("Hello out there");
//file->xml->equpment->object
Node root=open(PATH+"\\Equipment.xml");
Object[][] stuff = fmXML(root);
//frames (GUI)
JFrame aFrame = new JFrame();
aFrame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
aFrame.addWindowListener(new WindowAdapter(){
public void windowClosed(WindowEvent e){
System.exit(0);
JPanel aPanel = new JPanel();
//set headers
aFrame.getContentPane().add(aPanel);
//create scrollableTable
String[] columnNames=new String[] {
"name",
"conceal",
"cost",
"rating",
"weight",
"street index"
boolean[] columnEditable= new boolean[]{
true,
true,
true,
true,
true,
true
int[][] sliders = new int[][]{
{-1,-1,-1},
{-1,-1,-1},
{-1,-1,-1},
{-1,-1,-1},
{-1,-1,-1},
{-1,-1,-1}
if (stuff== null){
System.out.println("stuff is null");
aPanel.add(new ScrollableTable(null,stuff,columnNames,columnEditable,
sliders,true,0));
aFrame.pack();
aFrame.setLocationRelativeTo(null);
aFrame.show();
This isn't what I'm actually using, but I whipped it up real quick so you could get an idea about how it would be used.
* Test.java
* Created on March 23, 2003, 5:14 PM
package SRJava;
* @author unknown
import org.w3c.dom.*;
import SRJava.Editors.CharacterGenerator.*;
import javax.swing.*;
public class Test extends javax.swing.JFrame {
/** Creates new form Test */
public Test() {
//Replace this with some other XML file, in a table like form.
String fileName = "M:\\Shadowrun\\SRJava\\Editors"
+ "\\CharacterGenerator\\Equipment.xml";
Node root = xmlGenerate.open(fileName);
String[] columnNames = xmlGenerate.getAttrNames(root);
Object[][] data = xmlGenerate.fmXML(root);
//There should be no sliders, and all columns should be editable.
int columns=columnNames.length;
int[][] sliders = new int[columns][3];
boolean[] columnEditable= new boolean[columns];
for (int index=0; index < columns; index++){
sliders[index][0]=-1;
sliders[index][1]=-1;
sliders[index][2]=-1;
columnEditable[index]=true;
Object[][] avail = new Object[][]{
JScrollPane scroll = new JScrollPane();
JTable table=new JTable(data,columnNames);
scroll.setViewportView(table);
getContentPane().add(scroll, java.awt.BorderLayout.CENTER);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
pack();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
private void initComponents() {
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosing(java.awt.event.WindowEvent evt) {
exitForm(evt);
pack();
/** Exit the Application */
private void exitForm(java.awt.event.WindowEvent evt) {
System.exit(0);
* @param args the command line arguments
public static void main(String args[]) {
new Test().show();
// Variables declaration - do not modify
// End of variables declaration
And here's an XML File, call it Equipment.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<Equipment conceal="" name="" xloge="Blorg"/>
<Equipment conceal="Bla" name="different sample" xloge="Great southern trendkilling"/>
<Equipment conceal="adsf" name="sample" xloge="Red Crested"/>
</root>

Similar Messages

  • How do I send an email with a group address and not show the addresses/names of the recipients?

    How do I send an email with a group address and not show the addresses/names of the recipients?

    Use BCC.   That's blind carbon copy.   And copy paste the address into the BCC field.  It really depends what e-mail program you use how to enable BCC.

  • EXS-24 key range and note velocity data in name of file?

    Hi all,
    Cheers for any help in advance. Basically someone told me that if i was to put the key range and note velocity in the name of a file i want to put into EXS-24 it will automatically assign those values within the edit page.
    All i want to know is how do i do this and what order do i need to put this in the file name?
    cheers

    I already answered this in another forum where you posted it.

  • In User groups user name is shown as ADLDSMembershipProvider:UserID and not with First & Last Name

    Hello,
    In SharePoint site Groups for some users, user name is coming up with ADLDSMembershipProvider:UserID and not with the correct first name and last name. 
    Can some one please advice how i can get the correct first name and last name for the users, below screenshots for your
    reference.
    Please advice.
    Regards,
    Purvish Shah

    Hello,
    What version of sharepoint you are using?
    It seems that you have also configured custom membership provider with AD LDS. To verify this go to central admin and check the web application properties to confirm what auth method is being used.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Serching with the heriarchy node and not the funds center name

    Hi,
    I am executing a query with a heirarchy on funds center and a heirarchy selection variable on the web.  When the selection appears I use the search help box to select a funds center.  When it appears in the selection screen it is using the node name and compounding it with the financial managment area.  This returns an error as it is looking for the master data name not the heirarcy node name.
    1MAR/1MAR41000991000 - Returns Errors
    1MAR/41000991000 - Returns data.
    Any thoughts?
    Thanks Heather

    Issues was resolved with an OSS note 1090428.

  • HT4221 Lightroom 3 Win 7- iPad 3 iOS 5.1.1 - images are not sorted by file name in albums

    photos are not sorted properly. thougts? suggestions?
    20050518 - 18.12.05 - 0001.jpg
    20050518 - 18.52.24 - 0002.jpg

    I found that mobile data stopped working on my iPad once upgraded to IOS 5.1. I have resolved the problem by re-applying the settings in Settings > Cellular Data > APN Settings which had (very bizarrely) been over-written as a result of the upgrade process.
    Clearly your APN settings will be specific to your data plan, but if you contact your contract provider, they should be able to tell you what they are.
    Hope this helps.

  • How do I use CreateBookmarksFromGroupTree and NOT guid in the name for my top level?

    Post Author: Barbdcg
    CA Forum: Deployment
    I have a report that I have created that uses uses groups and I wanted export a PDF using the CreateBookmarksFromGroupTree option. While that works, I get an ugly top level bookmark name that starts with the name of my report, then followed by a GUID;
    Report {49E72CC5-7FFD-44F8-831B-EA8F543F7D82}.rpt
    So, how do I Put in a name of my own choosing as the top-level bookmark or at least get rid of the guid?
    Any help or suggestions would be appricated.
    Thanks,
    Barb

    Post Author: Barbdcg
    CA Forum: Deployment
    Still no answer??? I can not figure this one out!!  HELP!!!

  • How do I get my Music library songs in alphabetical order and not sorted by artist?

    Curious how you can sort your songs by alphabetical order without them being grouped by artist? Having this problem on ipad and iPhone

    Well as far as I can recall, I did nothing special at all when I synced my music to the iPad. I have very few downloaded/purchased songs on the device, but even the very few purchased songs that I have in the Music App are in alphabetical order. The only settings that can be changed on the iPad are in Settings>Music and I don't see anything in there that has any bearing in this. I have Group by Album Artist selected, but that doesn't change the alphabetical order if I toggle it off and on.

  • Data exist in PA0008 and not in Employee (Attributes) 0EMPLOYEE_ATTR

    I am using standard reports from the cube 0PA_C01 (Headcount with personnel actions) but i am experiencing some data are not coming in the master data 0EMPLOYEE_ATTR
    specially these fields
    Pay scale type
    Pay scale area
    Pay scale group
    Pay scale level
    for new entries data is coming but for old entries no data is coming
    in RSA3 the extractor is bringing all the fields except those fields coming empty
    but in the table PA0008  the data exists for the same employees,
    the info object is using FULL UPDATE and these data are not coming
    can anyone help ???

    after my investigations i found the following
    in BI 7.x
    Field in BI :  SLTYP "Pay grade type"
    Table  : PA0008
    Field in Table of Origin  : TRFAR
    in BI 3.x
    Field in BI :  SLTYP "Pay grade type"
    Table  : PA0008
    Field in Table of Origin  : SLTYP       
    so now the field is the same as TRFAR : Pay scale type
    my problem now is for some employees data is coming in SLTYP and for others it is coming in TRFAR and they are picking from the same field in PA0008 which is TRFAR
    the extractor is extracting the data like this employees has personnel no < 15332  is coming in SLTYP and >= 15332 in TRFAR
    i know it is looking silly but this is my situation
    thanks

  • TCS 4 - Mapping FM chapter title to show actual chapter title as topic and not a random topic name?!

    I recently upgraded from TCS 2 to TCS 4. I use it to "link" FM books to Robohelp and provide webhelp output to our tech team.
    I saved my project settings from previous project and imported them into the project I was re-creating (same source book). The project generated without errors and with the correct number of files (I did experience some crashes but they did get resolved).
    When I  delivered the webhelp output to tech (using a version control application) we discovered some of the files had different file names.
    It seems that all of the chapter title styles in my FM books are being brought over with a different name, such as with the name of the project.  This issue is only for my FM chapter titles, which before were also topic titles and still are but with a different name. Because I'm linking a book, I cannot re-name the files.
    In !SSL! folder my old file used to read something like this:
    C:\CompanyProductName\!SSL!\WebHelp\CPN_Help\04.UG.Intro.htm
    and how appears as this:
    C:\CompanyProductName\!SSL!\WebHelp\CPN_Help\04.UG.Intro\Company_Product_Name.htm
    In the Robohelp Project Manager, the file that you see in Topic List view appears as Company Product Name, instead of "Introduction". The correct content is there but the topic title is the project name.
    It seems that the conversion settings changed slightly from TCS 2 to TCS 4 and maybe I just don't understand what I need to select. I previously selected Topic Name Pattern to be (Default). Today, I tried different options to no avail. I couldn't get my topic file names to change unless I change the topic name pattern for all the topics (I can't do that for 2000+ files!).
    Attached are the settings I'm using. Any help will be greatly appreciated!

    Your TCS4 conversion settings window looks a bit different than my TS3. I have a menu of options for the Topic Name Pattern, but yours doesn't.
    I set my H1, H2 and H3, to start a new file and to name it based on the paragraph text <$paratext>.
    For your Title Chapter, select "Pagination (split into topics).
    And under Topic Name Pattern name, try manually entering <$paratext> or any other combination you want for the html file title.
    Alternatively,
    Select Topic Name Marker and your files will take on the name of the text in the topic alias.

  • FND_MESSAGE.GET_String does not print Attribute name.

    Hi ,
    I want to show the workflow notification messages through fnd_messages in application developer. Now, the issue is I am able to get the message as entered in message dictionary but not able to print the Name of the attribute .
    for ex: from the below code MESSAGE 3 is an acknowledgement message which will show the approver name to which the po no has been routed . in the application developer the attribute &APPR_NAME is mentioned but when the workflow is triggered the notification does not print the name of the approver in specified attribute .
    Message3:= FND_MESSAGE.GET_STRING ('XXAPL','MESSAGE3');
    Wf_Engine.SetItemAttrText(itemtype => p_itemtype,
    itemkey => p_itemkey ,
    aname =>'APRR_BDY_MSG',
    avalue => Message4 );
    Please guide me .
    Regards,
    SKG

    You are essentially trying to include an attribute inside an attribute, which is not going to work.
    If you know what the attribute names are going to be, then you can use the standard SQL REPLACE function in your code to replace the attribute name with the current value. That would allow you to make the content flexible in terms of the wording in the FND message, but not allow you to add / modify the attributes included in the message without revisiting the PL/SQL code and including the new attributes in there to replace.
    Alternatively, you would need to look at making the search and replace of the attribute name truly dynamic - parse the body of the message to find the name of the attribute in there to replace and do that replacement. However, this isn't straightforward by any means - it's easy to find the start of the attribute name, because it begins with an ampersand. But how do you find the end of the attribute name - the following character after an attribute name could be a space or any punctuation mark. Then, how do you know whether the attribute is called (for example) &ATTR1 or &ATTR1? or &ATTR1. ?
    For simplicity, I would go with the first of these - without a massive amount of thought, the second is an intensive, complex idea.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Force OBIEE to display attribute as dimension property and not separate dimension

    Hello,
    I have following question - in my project which utilizes Essbase and OBIEE I am interested in display of attribute as a characteristic of dimension and not as separate dimension.
    OBIEE generates following mdx statement:
    With
      set [_Prod.Manufacturer2]  as '[Prod.Manufacturer].Generations(2).members'
      set [_Product6]  as 'Filter(Descendants([Product], 8), (([Product].CurrentMember.MEMBER_Name = "P3336" OR [Product].CurrentMember.MEMBER_ALIAS = "P3336")))'
    select
      { [Measure].[Volume] } on columns,
      NON EMPTY {crossjoin({[_Prod.Manufacturer2]},{[_Product6]})} properties MEMBER_NAME, GEN_NUMBER, [Prod.Manufacturer].[MEMBER_UNIQUE_NAME], [Prod.Manufacturer].[Memnor], [Product].[MEMBER_UNIQUE_NAME], [Product].[Memnor], [Product].[Alias_table_1] on rows
    from [APP.DB]
    while I am interested in achieving following - where attribute Prod.Manufacturer is displayed as property of Product dimension and not as separate attribute
    With
      set [_Axis1Set] as '{Filter(Descendants([Product], 8), (([Product].CurrentMember.MEMBER_Name = "P3336" OR [Product].CurrentMember.MEMBER_ALIAS = "P3336")))}'
       select
      {[Measure].[Volume]} on columns, {[_Axis1Set]} properties [Product].[Prod.Manufacturer],MEMBER_NAME, GEN_NUMBER, [Product].[Memnor], [Product].[Alias_table_1]  on rows
    from [APP.DB]
    OBIEE generates expected syntax for Alias tables, is same possible with attributes?
    How ?
    thx
    Tomek

    Thanks heaps for your answer, Vladim!
    That's funny, huh? As mentioned, in respect to the Workstatus control, SAP made that functionality available for the Owner property of the Entity dimension (i.e. more than one user can be declared as an owner of a e.g. Cost Center and could hence change a particular Work Status).
    Any ideas for a workaround ?
    Have a good weekend...
    Claus

  • How to find database attribute names that correspond to page labels

    I've been tasked with creating one or more views to be used in creating reports. The users know data items by the labels on pages, not the database attribute names. So my dilemma is how to correlate the page labels to the database attributes.
    For example, there's a course details web page. It includes items labeled "Replacement Course", "Inherited Competency Update Setting" and "Attachments", among others.
    Focusing on "Inherited Competency Update Setting"... there's no database attribute called that. I've found COMPETENCY_UPDATE_LEVEL, but I don't know if that is it. And is an "inherited" one different than a non-inherited.
    I've googled about, and discovered that "Inherited Competency Update Setting" can be set by using a workflow named OTA_COMPETENCE_UPDATE_JSP_PRC and setting an attribute named HR_APPROVAL_REQ_FLAG. Further research has lead me to determine that HR_APPROVAL_REQ_FLAG is used only within the workflow system. I've found in SYS.ALL_SOURCE a package OTA_COMPETENCE_SS with a function that gets that attribute's value. It includes a query against WF_ACTIVITY_ATTR_VALUES which retrieves values of YES_DYNAMIC, APPROVAL, NO, YES or NOTIFYONLY. I've not found any code that uses the function.
    Using ALL_TAB_COLUMNS, I'd found COMPETENCY_UPDATE_LEVEL in OTA_OFFERINGS, which contains "APPROVAL" or null. So that may be what I seek, but I can't confirm it.
    I also have been unable to find the translation from "APPROVAL" to "Notification, Automatic Update after Approval" (assuming I'm correct and this is the field)
    I've found a Training Administration Technical Reference Manual for Release 11i, which contains information about the database, but I've found no corresponding document for Learning Management for 12.1 (Only installation and user guides).
    And this is many days' research to find one attribute. Which I'm not certain I've found.
    So, in this case in particular, or any case in general, how does one find the database name for an attribute, given the page label's text??
    Thank you
    Cornell

    Whoa, easier than I'd thought...
    When the page first shows up, there's the About This Page link, at the bottom, clicking it you get to the About Page.
    I noted two sections, Page Definition and Business Component References Details.
    I expanded Business Component References Details and found View Objects. There's a list of views used. I was dismayed that the views don't appear to be in the database. Of course, they're camelCased Java names of Java objects, not database names (although sometimes some of the camelCased tokens might correspond to parts of view names). They are, however, clickable and when clicked the definition shows up, and I was thinking that it would take a long while to find what I was seeking.
    But... Hit the Expand All link in Page Definition, do a find on page for the desired label, and there it is... a row with the label, view object name and attribute! Pay dirt!
    Then go to the Business Component References Details, find the View Object, click it, and there's the view :-) Find the attribute, then the table... easy peasy!
    Thank y'all again

  • My contacts will not sort properly on Macbook Pro

    Greetings all,
    I'm still trying to learn  the Mac OS, only been on it a couple months. Here is my issue, on the Macbook, my contacts will not sort by first name.
    On my iPhone and iPad, and when I log in to the iCloud and look at my contacts they are all sorted by First Name, and listed as (First Name, Last Name).
    When I go to the Macbook contacts they are sorting by Last Name... I have removed the contacts from my computer, unchecked the contacts rebooted, re-activated  the contacts on cloud and they still do not sort the way i want them too....
    Can anybody help me please.

    You helped me figure it out, I fill like a putz, I did not realize that the Contacts on the Mac OS, actually had its own settings.... I thought they were all controlled by the iCloud settings....
    I'm slowly but surely getting things figured out, after using Windows all my life.  Thanks a million.

  • Mail Not Sorting new Folders Added Alphbetically

    Hello! I have tons of sub folders in my inbox, and I would like it to sort them all alphabetically. This was all fine, but recently the last 6 folders I added to the list were appended to the bottom of the list, and not sorted alphabetically with the rest of the sub folders. Is there anyway I can reapply the sort alphabetically feature to the folder list? I cannot seem to find it anywhere.
    Troubleshooting steps I have taken:
    1) Closed and restarted Mail App
    2) Restarted Computer
    3) Added another new folder and it is still appended to bottom of list even after all the reboots
    4) Mail is confirmed to work
    Any help would be great. Thanks!

    Hi,
    I'm not sure, but I suspect the new Snow Leopard feature ...
    http://www.apple.com/macosx/refinements/enhancements-refinements.html#mail
    ... that lets you move folders around manually might be what's causing the weird behavior.
    In Leopard, you could move a folder inside another folder but, otherwise, they would always stay in alphabetical order, I think.
    Anyways, in Snow Leopard (and Leopard for that matter), there's an invisible file around ~/Library/Mail/<name of your email account>/.mboxCache.plist It seems to keep a list of the mboxes in that folder/account. In Snow Leopard, the first time you manually move an mbox out of alphabetical order, a new key called MailboxDisplayOrder seems to get created in that plist for all the existing "non-special" (i.e. not INBOX, Sent, Drafts, etc.) mboxes in that folder. Once that key exists, it seems like new folders get appended to the end of the order.
    I don't know the right way to fix the problem though. I'm really just posting my observations, based on what I'm seeing on my computer. I'd be very careful about manually messing with invisible files in your mail, especially if you don't have a good backup. (No idea if you can restore an invisible file with Time Machine.) A lot of this is guesswork. But I thought maybe it'd help someone.
    Later,
    k

Maybe you are looking for

  • ABAP webdynpro events in Portal

    Hi All, I am a novice in Portal. I am not sure if this is the right forum also to ask this question. I created an application in ABAP webdynpro , created an iview using the ABAP webdynpro option. My scenario : I have to create a work request in a zta

  • Configuring Default Web Application w/ WLS6.0 SP2

              I have 2 Machines with no shared file system.           I have identical directory structures on both:           /usr/local/weblogic/config/qadomain/applications/DefaultWebApp           I have 2 Servers within the cluster:           ServerA

  • The driver is not configured for integrated authentication

    my code is : String connectionUrl = "jdbc:sqlserver://169.254.35.45:1486;" + "databaseName=ipec;"+"integratedSecurity=true"; Connection con = null; Statement stmt = null; try // Establish the connection to the principal server. Class.forName("com.mic

  • Adding AM/PM to time

    I know this is hardly the most important questioned asked here but I have always had an issue getting AM/PM to display on the menu bar, 10.5 is still no different to all the other OSX systems. What am I doing wrong, the display AM/PM check but is alw

  • Displaying GUI on other PCs

    hey guys so i've got a GUI (as a JSP file) going where i've got it to display the map of a certain county in the US with a few features like pan zoom in enabling/disabling the themes using the Oracle MapViewer API. But now what if i want to be able t