Need help sorting alphanumeric list - with 1 entrance before 10

I question the categories table and the category field is a text field data begins with numbers. What I was never able to understand how do is sort categories so that more small numbers appear before adults. See the example:
4 megapixel
5 megapixel
6 megapixels
10 megapixels
11 megapixel
21 million pixels
etc.

When I sort this list using listsort, the list is displayed as follows:

10 megapixels
12 megapixels
21 million pixels
4 megapixel
5 megapixel
6 megapixels

I was wondering (hoping) that someone here would know how can I sort these items so that they appear as in the first list.

Thank you.

Photshare,

If you can extract the values in a number field you need not the padding.

Tags: ColdFusion

Similar Questions

  • Need help for dependent lists with ADF boxes.

    Hello

    I am doing a project that use dependent list of tree areas.
    E.g. State->
    -> College
    List of courses of the College selected above-->

    The way it should work is when I select the State automatically I want to return to the corresponding list of colleges in that State, and as soon as I clicked on the colleges I want to be able to get all the courses that are given in the order.
    To implement the first two list boxes I create trees on JDeveloper and and SelectOneChoice of the State and the colleges. In the link editor I link the first view with the second, then the second point of view with the third and at this stage if I run the first SelectOneChoice would give me the entire State and the second SelectOneChoice could give me the list of schools that exist.

    Now on the third point of view that I create a variable binding and I put a in which indicate =: TheBindingVariable on the query.
    Also I updated the first SelectOneChoice the outoSubmit set to true, id to StateId property and the property of PartialTrigger CollegeId.
    On pageDef.xml in the bindings, I create action shape where I select the third view of Collection Date and select Action as ExecuteWithParams. And I set the value under the parameters section of #{bindings.state.inputValue}.
    Under executable files in pageDef.xml, I have create an invokeAction and I put links = ExecuteWithParams.
    The first SelectOneChoice on the ChangeValueListener I have create a new ManageBeans that generate me a java class and I create a new method as well to use it to change the binding on the second SelectOneChoice variable.

    Here is the method:
    public void Change_StateId (ValueChangeEvent valueChangeEvent) {}

    String StateId;
    valueChangeEvent.setPhaseId (PhaseId.INVOKE_APPLICATION);
    ADI FacesContext = FacesContext.getCurrentInstance ();
    ValueBinding vb = adi.getApplication ().createValueBinding("#{bindings}");
    DCBindingContainer = (DCBindingContainer) vb.getValue (adi) bc;

    {if (valueChangeEvent.getNewValue (). ToString(). Equals("0"))}
    StateId = 'MA ';
    OperationBinding opBindingCollegeLovIter = bc.get("ExecuteWithParams") (OperationBinding);
    opBindingCollegeLovIter.getParamsMap () .put ("TheState", StateId);
    opBindingCollegeLovIter.execute ();
    } else {}
    DCIteratorBinding statesLovIter = (DCIteratorBinding) bc.get("CollegeProvaView1Iterator");
    Line rw = statesLovIter.getRowAtRangeIndex (((Integer) valueChangeEvent.getNewValue ()) .intValue ());
    StateId = (String) rw.getAttribute ("State");
    OperationBinding opBindingCollegeLovIter = bc.get("ExecuteWithParams") (OperationBinding);
    opBindingCollegeLovIter.getParamsMap () .put ("TheState", StateId);
    opBindingCollegeLovIter.execute ();
    }
    }

    I don't know what I did wrong because I am new in this field and a little help would be really useful.

    I use 10.1.3.1.0 JDeveloper and Oracle SOA Suite 10.1.3.1.0.

    I'd appreciate any help.

    Thank you very much.

    Hello

    Is there a particular reason why you can not implement the simplest solution? :

    -create 3 object view (vo1, vo2 vo3)
    -create 2 show links between <->vo1 vo2 and vo2 vo3<->
    detail - insert the display objects in the application as master - detail - module
    -Drag & drop on the page of the range of data such as lists of navigation control
    -set the ID and partial triggers and autosubmit

    Kind regards

    Branislav

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • NEED HELP! OneKey Recovery with XP PROFESSIONAL

    I managed to do a upgrade by using a Windows XP Professional with Service Pack 3 CD and everything works fine.

    Now, I need help with a key recovery and how it will behave during a recovery of a backup I created AFTER the XP PRO upgrade:

    AFTER THAT I updated to XP PROFESSIONAL, I made a full BACKUP of the OKR and saved to the "Partition/drive D:" (default location). Now, I need to know what will happen if I point OKR to this specific backup. It covers this image and boot with XP Professional?

    I know not if I get the option to go to the new factory, I'll get Windows XP Home Edition. However, assuming that I did a backup on the disk D: AFTER my release to update to XP PROFESSIONAL, by selecting this backup during the restore process will put me back to the State in which the computer was when I created this backup (with the OS is XP PRO)?

    I guess I still have a little confusion on this issue: is full this backup, I created a REAL IMAGE on the D: drive? ... Alternatively, it does contain THAT data user while OKR enters the OS Home Edition of the partition hidden during the restoration of this image?

    If my backup on D: is a TRUE PICTURE, then I should be able to choose this one to restore and after the restore is completed, my computer should start XP Professional just the way it looked when I made the backup... Right?

    John in Indiana

    p.s. I made the mistake of using RegSeeker, and as others have pointed out, my QuickLaunch disappears each time that I reboot and my desktop icons back to a default location after a reboot and no one has been able to solve this problem. Thus, my need to go back to the way things were BEFORE I created this mess.

    Thanks for the reply and information. I just ran the recovery and everything came back perfectly with XP Professional. It is nice to have a gentle method of collection for all the times when I install something that I later regret.

    John in Indiana

  • need help for VMWARE 8 with Server 2008

    Hi, need your help for my current problem,

    I am currently using vmware workstation 8 for my MCITP LAB. I have windows 7 OS and host in vmware W/S I installed server 2008 and windows 7 Pro. I have a static IP for the host operating system (10.1.1.31 255.255.255.0 10.1.1.1) DNS - (203.X.X.35 203.X.X.36) and also, I configured two comments with a static IP address. Server 2008 - (10.1.1.191 255.255.255.0 10.1.1.1) DNS (127.0.0.1) have active directory and the DNS service is installed, and there also is the main DNS 127.0.0.1 and for the comments of Pro windows 7 - (10.1.1.192 255.255.255.0 10.1.1.1 (10.1.1.191), the primary dns is pointed to comments Server 2008) I use a bridge network for host OS and the two guest operating system, but when I tried to connect to the internet there is no connection as it is not the internet for the two guest operating system and there is no internal connectivity to the two guest operating system. virtual bridge Protocol option, it is also so please need your help to solve this problem, I can do my TP.

    the main solution, I need, that's how I use the PDC 2008 sever in same vmware W/S with three customer reviews OS I can do my work Practicle without buying a few physical computers. Please see the attached diagram-

    I have core I5 with Virtulisation

    8 GB Ram

    HARD DRIVE 500 GB

    Wireless WLAN cards

    DVD R/W

    Please need help as soon as POSSIBLE.

    Thank you and best regards,

    Martinuzzi

    OK, for the windows 2008, try to install the DNS service (Add Server Manager roles) in there... (you cannot point the others it as DNS if it does not act as DNS)

    also in it the IP configuration, set as follows:

    IP 10.1.1.31

    Subnet 255.255.255.0

    Gateway 10.1.1.1

    Primary DNS 10.1.1.31

    203.x.x.35 secondary DNS (you can also add the 203.x.x.36)

    Do the same for your guests to WIndows 7.

    Make sure all are workers and they can ping each other...

    If everything is OK, you should have internet on them...

  • Need help on the list of months between two Dates

    Hi all

    I have a table which has startdate and enddate and need a select to list all the months between these two dates for each given ID.
    I did some tests and could not figure out how to get the startdate and enddate table (instead of hard coding) tests in the select statement.

    Could someone please help on this (Oracle 11 g 2),
    Thanks in advance!


    create table testing(
    id          number,
    start_date  date,
    end_date    date);
    insert into testing values(100, to_date('05-FEB-2011', 'DD-MON-YYYY'), to_date('28-MAY-2011', 'DD-MON-YYYY'));
    insert into testing values(200, to_date('20-JUN-2011', 'DD-MON-YYYY'), to_date('28-DEC-2011', 'DD-MON-YYYY'));
    commit;
    
    select * from testing;
    
            ID START_DAT END_DATE
    ---------- --------- ---------
           100 05-FEB-11 28-MAY-11
           200 20-JUN-11 28-DEC-11
    
    Elapsed: 00:00:00.01
    
    *for testing.id = 100:*
    select to_char(add_months(to_date('05-FEB-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
     from (select level l
           from dual
        connect by level <= months_between(trunc(to_date('28-MAY-2011', 'DD-MON-YYYY'), 'MONTH'),
                                           trunc(to_date('05-FEB-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
    
    DATES
    -----------------
    2011-Feb
    2011-Mar
    2011-Apr
    2011-May
    
    Elapsed: 00:00:00.01
    
    *for testing.id = 200:*
    select to_char(add_months(to_date('20-JUN-2011', 'DD-MON-YYYY'), l - 1), 'YYYY-Mon') Dates
     from (select level l
           from dual
        connect by level <= months_between(trunc(to_date('28-DEC-2011', 'DD-MON-YYYY'), 'MONTH'),
                                           trunc(to_date('20-JUN-2011', 'DD-MON-YYYY'), 'MONTH')) + 1);
    
    DATES
    -----------------
    2011-Jun
    2011-Jul
    2011-Aug
    2011-Sep
    2011-Oct
    2011-Nov
    2011-Dec
    
    7 rows selected.
    SQL> select * from testing
      2  /
    
            ID START_DAT END_DATE
    ---------- --------- ---------
           100 05-FEB-11 28-MAY-11
           200 20-JUN-11 28-DEC-11
    
    SQL> select  id,
      2          to_char(add_months(start_date,column_value - 1),'YYYY-Mon') dates
      3    from  testing,
      4          table(
      5                cast(
      6                     multiset(
      7                              select  level
      8                                from  dual
      9                                connect by add_months(trunc(start_date,'MM'),level - 1) <= end_date
     10                             )
     11                     as sys.OdciNumberList
     12                    )
     13               )
     14    order by id,
     15             column_value
     16  /
    
            ID DATES
    ---------- --------
           100 2011-Feb
           100 2011-Mar
           100 2011-Apr
           100 2011-May
           200 2011-Jun
           200 2011-Jul
           200 2011-Aug
           200 2011-Sep
           200 2011-Oct
           200 2011-Nov
           200 2011-Dec
    
    11 rows selected.
    
    SQL> 
    

    SY.

  • Need help filling single textfield with dynamic array data

    Hello

    I am filling a text field with a dynamic array data. So I know how many points are in the table with the instancemanager.count function. I need to help get the data from the dynamic table and insert into a field of text followed by a comma.

    Example:

    Dynamic table: row [1]: DATA_01

    line [2]: DATA_02

    rank [3]: DATA_03

    ...

    I would like to than the text box to automatically fill data in this format: DATA_01, DATA_02, DATA_03... and continue if there is more data.

    I started with the code below, but it does not work.

    var Count = form1.page2.DATA_history.instanceManager.count;

    var temp;

    for (var i = 0; i < Count; i ++)

    {

    Temp = xfa.resolveNode ("form1.page2.PO_history [" + i + "]"). DATA.rawValue;      This seems to get the last line only entry.

    this.rawValue = this.rawValue + temp;

    }

    I hope I was clear, but if someone need for clarification please ask. Thank you.

    Hello

    Try the following:

    var Count = form1.page2.DATA_history.instanceManager.count;

    var temp = "";

    for (var i = 0; i)

    {

    Temp = temp + xfa.resolveNode ("form1.page2.PO_history [" + i + "]"). DATA.rawValue + ",";

    }

    this.rawValue = temp;

  • Need help to select lists in cascade and Update button in IR

    Hello

    I try to use cascading Select lists in a form that is called when the button update (see photo) is pressed in an IR problems I encounter are 2:

    1. during execution of the first of the form (that is to say by pressing the update or create in IR), the first Select list values but the 2nd is empty. If I change the value of the
    Select the first list then 2nd fills with the correct values, etc. I want the two 1st AND 2nd list to fill in the entry on the form.

    2. in addition, while pressing the button update, the 2nd list select do not seem to have the correct value selected, that is, the value that is actually in the database (IE in the)
    database file), but always the 1st available in the select list 2. The value of the select list 1 is always that of the recording.

    Any help will be appreciated. The following information:

    Table mapping: (form updates this table)
    ID
    Iface_protocol_id = > (list 1): Table: iface_protocols
    Iface_protcol_categ_id = > (2nd list): Table: iface_protocol_categ, a FK to iface_protocols the iface_protocol_id
    .....


    Application process involved
    DECLARE
    l_counter NUMBER;
    l_o_name VARCHAR2 (2000);
    BEGIN
    owa_util.mime_header ("text/xml", FALSE ");
    HTP.p ('Cache-Control: non-cache');
    HTP.p ('Pragma: non-cache');
    owa_util.http_header_close;
    HTP. PRN ("< select > '");

    FOR rec IN (SELECT "IFACE_PROTOCOL_CATEG". "" IFACE_PROTOCOL_ID ".
    as "IFACE_PROTOCOL_ID."
    'IFACE_PROTOCOL_CATEG '. "' DESCR_LOCAL ' as 'NAME',
    'IFACE_PROTOCOL_CATEG '. ' ' ID ' as the 'ID '.
    OF 'IFACE_PROTOCOL_CATEG' 'IFACE_PROTOCOL_CATEG '.
    WHERE 'IFACE_PROTOCOL_CATEG '. "" IFACE_PROTOCOL_ID ".
    =: F108_TEMPORARY_ITEM1)
    LOOP
    HTP. PRN ("< option value ="' | rec.id |) '">' || Rec.Name
    || ("< / option >");
    END LOOP;

    HTP. PRN ("</select > '");
    END;


    HTML Source code in the corresponding form region
    < script language = "JavaScript1.1" type = "text/javascript" >

    function get_AJAX_SELECT_XML (pThis, pSelect) {}
    var l_Return = null;
    var l_Select = $x (pSelect);
    get var = new htmldb_Get (null, $x('pFlowId').value, 'APPLICATION_PROCESS is Interface_Protocol_Categories', 0);
    Get.Add ('F108_TEMPORARY_ITEM1', pThis.value);
    gReturn = get.get ('XML');
    If (gReturn & & l_Select) {}
    var l_Count = gReturn.getElementsByTagName("option").length;
    l_Select.length = 0;
    for (var i = 0; i < l_Count; i ++) {}
    var l_Opt_Xml = gReturn.getElementsByTagName ("option");
    appendToSelect (l_Select, l_Opt_Xml.getAttribute ('value'), l_Opt_Xml.firstChild.nodeValue)
    }
    }
    get = null;
    }


    function appendToSelect (pSelect, pValue, pContent) {}
    var l_Opt = document.createElement ("option");
    l_Opt.value = pValue;
    {if (document. All)}
    pSelect.options.add (l_Opt);
    l_Opt.innerText = pContent;
    } else {}
    l_Opt.appendChild (document.createTextNode (pContent));
    pSelect.appendChild (l_Opt);
    }

    }

    < /script >


    Attributes of the HTML Form on the first list form field
    OnChange = "get_AJAX_SELECT_XML (This, 'P63_IFACE_PROTOCOL_CATEG_ID')" "



    TIA

    Ok. Now remove the javascript code that has been added in the footer.
    Change the LOV query for the 2nd item in list be

    SELECT descr_local descr_local, id of
    OF IFACE_PROTOCOL_CATEG
    WHERE iface_protocol_id =: P63_IFACE_PROTOCOL_ID

    Set the Source used for this item "Always, replacing any existing value...". »

    Varadl

  • Need help on the issue with wireless connectivity on Win7 - dynamic key exchange did not within configured time

    Hello

    I get below error when you try to connect to the wireless router. It was working fine until a few days back.

    InterfaceGuid {1F8AA774-8AE0-48BA-87EB-5522A6070F3E}
    InterfaceDescription Dell 1540 802.11a/g/n (2.4 GHz/5 GHz) Wireless
    ConnectionMode automatic connection with a profile
    BSSType infrastructure
    Key exchange dynamic FailureReason failed within configured time
    Used 294917
    ConnectionId 0x9

    What is the reason code 294917?

    Any help to solve the problem would be useful.

    Kind regards

    Srinivasa

    Hi Richard,

    Thanks for the quick response.

    I tried diff incl. power options. Nothing has worked.

    Finally, I reset my router unit today and it works now.

    Hope that this issue would not yet :-)

    Kind regards

    Srinivasa

  • Need help to display text with the onClick event

    I have a thumbnail that when you click on, it displays a larger image.  I also want to display the title under the enlarged image when the user clicks on the thumbnail.  Help, please!

    but is there a way to simulate onClick with CSS?

    In fact, there is, but it works on devices with touchscreen like the iPhone, iPad and Droid.

    If your visitors use a mouse device operated, they will see the event in the overview.

    http://www.usabilitypost.com/2010/05/12/CSS-hover-controls-on-iPhone/

    If you must use onClick, watch the tutorial to Show/Hide layer below.

    http://www.cbtcafe.com/Dreamweaver/showhidelayers/index.html

    Nancy O.
    ALT-Web Design & Publishing
    Web | Graphics | Print | Media specialists
    http://ALT-Web.com/
    http://Twitter.com/ALTWEB
    http://ALT-Web.blogspot.com

  • Need help. Big problem with battery

    Hi all! I have the HP Mini 110-3864 sr for 3 years. I rarely used the battery but if I do, my phone has worked for 3 to 6 hours. August 15 I went on business trip and my HP stayed at home. When I came back the 22 of August, I turned on, but I found that the battery does not at all. I have Windows 7 and I see that the State of the battery is 0% and no charge. I did everything what I found in the internet. I installed HP support assistant and don't diagnose BIOS etc. Nothing helped, but HP support assistant said that the battery is OK. During the test it starts to load for 15 seconds, and that's all. I think that when I left the battery was about 10% and during the week he lost power.

    I know it takes work because as I said before it cat running notebook for 3 hours +++. Please help what I do?

    "I know that it takes work because as I said before it cat running notebook for 3 hours +++." Please help what do I do? »

    If you remove the battery and plug the power adapter, are you able to boot Windows?

    If it is possible, then your battery has probably not and must be replaced regardless of what the diagnostic test said you.

    Batteries for laptop computer or netbook are only guaranteed for one year. If you get three years of life of a laptop battery, you can consider yourself very lucky.

  • Need help importing CSV file with commas in the rest of the data

    I have a linux script that gets the CSV files from a remote server and import the data into a table using SQLLoader.

    The problem I have is that the data in the CSV files sometimes contains commas in the text field that is interfering with the import and I have no control over what is in the file.

    my table:

    Create the table my_tab
    * (TIME_STAMP date, *)
    REQUEST_IP varchar2 (30),
    User_id varchar2 (30),
    FACILITY_ID VARCHAR2 (255),
    Number SUBFACILITY_ID,
    DETAIL VARCHAR2 (255)
    *);*

    example of a CSV file:

    * 27032011 story 232708,162.108.20.61,user123,cstmr_view_hlr_history,0,Viewed with 10 results per page for 1234567890 *.
    * 232737,162.108.20.61,user123,cstmr_view_customer,0,Facility 27032011 [display] selected *.
    * 232744,162.108.20.76,user123,cstmr_add_gprs,0,Facility 27032011 [Add x] selected *.
    * 232759,162.108.20.94,user456,cstmr_hlr_request,0,Facility 27032011 [x orders] selected *.
    * 27032011 added 232806,162.108.20.94,user123,cstmr_hlr_request,2,Customer note: note [x], MSISDN [1234567890] *.
    * 232806,162.108.22.96,user789,cstmr_hlr_request,0 27032011, queue update: Action [46], IMSI [1234567890] old [, MSISDN IMSI [1234567890] *.
    * 232815,162.108.20.67,user789,cstmr_view_customer,0,Facility 27032011 [display] selected *.
    * 27032011 232822,162.108.20.67,user123,cstmr_view_customer,5,Screen ' display customer details ': MSISDN [1234567890] *.
    * 27032011 232702,162.108.20.57,user456,cstmr_hlr_request,0,Queue update: Action [45], IMSI [1234567890] old [, MSISDN IMSI [12345678901], AFN [], [PDPREC] *.
    * 27032011 connection 232825,162.169.22.108,user456,adm_login,1,Successful: user [user_name] *.
    * 232829,162.169.22.108,user456,cstmr_view_customer,0,Facility 27032011 [display] selected *.

    How can I get around the commas in the text?

    Published by: cinnamon on April 4, 2011 08:07

    There is a way to do it, but it depends on a few assumptions, and (b) you have to jump through hoops to do it.

    First of all, this only works if there is no comma request_id, user_id or facility_id. (if there is, then you're stuck, because there is no way to determine which commas are part of data and those that are separators.)

    Second, he must know if there are any particular character - say | -who never appears in the detail.

    If you can do both of these assumptions, then what you have to do is:
    (1) create an array that consists of a single VARCHAR2 column large enough to hold longer line of your input data.
    (2) to import your data into this table.
    (3) replace the first five commas in each row of the table with. (or whatever your "unused" character).
    For example:

    UPDATE temp_data_table
    SET row_text = REPLACE(SUBSTR(row_text, 1, INSTR(row_text, ',', 1, 5)), ',', '|') || SUBSTR(row_text,  INSTR(row_text, ',', 1, 5) + 1);
    COMMIT;
    

    (4) write a SQL INSERT command to build your target table according to the values separated by the | characters.

    -Don

  • Need help on the layout with CSS

    Hello

    Go easy on me I'm new to the Web design...

    I'm working with CSS, learning about various tutorials and have a basic understanding.  Where I am getting lost is I do a page template (dwt), I've done this before but this time I want to be more than a simple text in my pages editable region

    Thus, for example

    index

    loads with a text and a video

    Page1

    some of the texts, images, ads etc.

    Page2

    some of the texts, images, ads etc.

    fundamentally something different on each page, but I only see the option to leave an ' editable ' for each page... the logic in my brain is I create a DWT with my site header and navigation and footer and have content in the average change for each page depending on what I want to have this page?

    What confuses me, that of if I had to do more than 1 dwt, then how could manage navigation in one place?

    Thank you

    I think you mean I should use relative not absolute positioning?

    No, I mean that you must use no positioning at all. Read this - http://www.apptools.com/examples/pagelayout101.php

    with CSS, if I hear you correctly the style sheets should be used for the control of aspects throughout the site, page specific CSS should be put on the page itself... seems logical because it could keep things tidy.

    Yes.  You have a right, even if you can put also specific to the CSS in the stylesheet global page if the selectors so that the rules are specific for tags and attributes on specific pages.

    Good luck!

  • need help to get started with 6320

    I got a PCIe-6320 recently and I did not use it for purposes of counting. I entered the TTL signals to pin 37 and I try to see some numbers counter County 0 but I still get nothing. The Board of data acquisition has been successfully installed.  But I can't read any number of counter. I run example screws as County Digital Events.vi and Clk.vi of digital counting events-buffer-continues-Ext. I don't connect only a signal to the SCB-68 box: the signal pin37 and the Earth to Terminal 4. What other tests should I do to figure out the problem?

    Thank you.

    Lixin

    problem solved.

  • need help finding titles online with Windows Media Player 12

    Hi all, running a Dell Inspiron laptop. Operating system is Win 7 Home premium 64-bit. Using Windows Media Player 12. I have my settings value automatically rip music, and normally it is the name of the album online for me. I guess my taste in music must be dark, because in the last batch of CD that I tore two were not online. The search computer and then eject the CD. How can I add information as the names of the songs album artist etc. and rip and import the CD that can be viewed online? Thanks in advance

    Yes, you can manually add or edit metadata.

    Update of metadata and artwork in Windows Media Player 12

Maybe you are looking for