Spry wont sort alphabetically with CDATA used in XML

the sorting problem I don't know how to fix is when one of
the items in my xml has a link through the use of CDATA as in
<award><![CDATA[<a
href="../awards/LucatoPeacePrize08.swf" target="_blank">Lucato
Peace Prize</a>]]></award> with this in my xml this
particular entry is at the top of the sorted list, which,
logically, is correct. But I want it to appear down the list before
the M's and after the L's.
Can anyone shed light on how to fix this?

You're going to have to create a custom column that has just
the text between the <a> and </a> tags, and then you
can use that custom column when sorting. Something like this:
function PreFilterColumns(ds, row, rowIndex)
// Get the value in the award column for this row and
// strip out both the <a> and </a> tags. Stick
the result
// in a column called "awardName".
row.awardName = row.award.replace(/<\/?a[^>]*>/g,
return row;
var ds1 = new Spry.Data.XMLDataSet("foo.php", "/rows/row", {
filterDataFunc: PreFilterColumns });
--== Kin ==--

Similar Messages

  • CONTACTS 'Custom Label' list not sorted alphabetically ? ? ?

    In both I/OS 6 & 7 the 'Custom Labels' I created to more accurately identify new Contact phone number I enter, that list is no longer sorted alphabetically (like it use to be in previous operating systems for my iPhone 5).  Does anybody know a work-around?

    No way to move any buttons in iOS devices.

  • Mail: Sending, with recipient names sorted alphabetically

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

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

  • Sort alphabetically a lookup column in 'Quick edit'

    Hi Everyone,
    I've had this problem for a long time now and have not been able to get it working. I have a List with several fields, one of them is a Drop-down list with a lookup field linked to another list called 'Customers' which has two fields 'ID' and 'Customer'.
    If I create a 'New Item' the field 'Customer' is sorted alphabetically in ascending order by 'Customer', also in the list it's the same (which is what I want) however if I try to edit with the 'Quick Edit' button the lookup column is not sorted by 'Customer'
    but by 'ID'  and the users are complaining about this this there are more than 1,000 fields. Funny thing is as I already explained, if you create a 'New Item' or 'Edit Item' it works and is sorted as it should, only the lookup in 'Quick Edit' is sorted
    by ID.
    I already attempted the following and still no luck. I would very much appreciate the help.
    Sort SharePoint lookup column Dropdown by customizing your list form with InfoPath
    Regards,
    --Luis
    Si se solucionó tu consulta no olvides marcar la respuesta. Si te ayudó vótala como útil. Saludos!

    Hi,
    According to your post, my understanding is that you wanted to.
    There is no out of the box way to accomplish this with SharePoint.
    By design in SharePoint, the lookup column is sorted by ID in 'Quick edit'.
    When you click the dropdown icon, the HTML Table will be appeared.
    You can use JQuery to sort the Table.
    More information:
    http://www.granneman.com/webdev/coding/css/sorting-tables/
    http://blog.niklasottosson.com/?p=1914
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Can layers be sorted alphabetically in InDesign?

    Please could someone tell me if layers can be sorted alphabetically in InDesign?

    Thanks for your reply Rob
    I worked with a few people and managed to get it accomplished with .jsx script. I'm using Adobe Illustrator CC, so I was hoping that I might be able to "borrow" some code from what might have turned up here.
    Here is the script that we got drawn up to alphabetize pathItems within Illustrator, and the original code that sorts layers is at the top of the post:
    Re: Re: Re: How to sort objects alphabetically (inside of a layer)?
    ***EDIT***
    I pulled the script from that post just in-case that post goes down or gets deleted.
    #target "Illustrator"
    function alphabetize()
         if (app.documents.length == 0)
              alert("No document Open");
              return;
         var docRef = app.documents[0];
         var state = docRef.layers;
         for (a = 0; a < state.length; a++)
              var provider = state[a].layers;
              for (b = 0; b < provider.length; b++)
                   var product = provider[b].layers;
                   for (c = 0; c < product.length; c++)
                        var town = product[c].pathItems;
                        if (town.length > 0)
                             var townList = [];
                             for (d = 0; d < town.length; d++)
                                  townList.push(town[d].name);
                             townList.sort();
                             sort_layer(product[c], townList);
    function sort_layer (obj, array) {
         for (var ri=0, riL=array.length; ri < riL ; ri++) {
         obj.pathItems.getByName(array[ri]).zOrder( ZOrderMethod.SENDTOBACK );
    alphabetize();

  • Spry tables: Sort by date

    I need a spry table to sort by title and date columns; the
    title works fine by selecting the 'sortable column' option when
    making the table - this didn't work for the date column, but I
    think this was because the excel/xml data used had the date info in
    a text format. Once I'd formatted the date column cells in excel
    doc as 'date' in (e.g.) Jan-07 format, the xml conversion changed
    the data to what i think is the standard date format (e.g.
    2007-07-01 00:00:00). Making this column sortable resulted in rows
    being rearranged in the spry table, but not in any logical order.
    please help!
    many thanks,
    S
    (apologies if that was long-winded, wasn't sure whether you
    needed any context)

    You cannot sort a formatted date by default using the Spry.  How is the data stored, in XML or HTML?  And is the date stored as a formatted date or a timestamp?  What is typically suggested is that you store the dates in two formats.  First is a timestamp format or a formatted date as yyyy-mm-dd.  You use that column to sort and then you have a date formatted however you want in a second column and that gets displayed to the user.
    You can see more about this in the following thread: http://forums.adobe.com/thread/85718
    The problem with the dd/mm/yy format is that Spry (and many other solutions) read the information as plain text.  So here's a quick example of oldest to newest
    30122011 - Dec 30, 2011
    31012011 - Jan 31, 2011 - January would come after Dec
    01302011 - Jan 31, 2011
    01312010 - Jan 30, 2010 - 2011 would be before 2010
    20100131 - Jan 31, 2010
    20110131 - Jan 31, 2011
    20111230 - Dec 30, 2011 - In this format all numbers show up in numerical order.

  • Hi people, can anyone tell whether one has the possibility in numbers, the entries in the pop-up menu to sort alphabetically me

    hi people, can anyone tell whether one has the possibility in numbers, the entries in the pop-up menu to sort alphabetically me

    Hi Dieter,
    Your profile shows Mac OS X (10.6.8) so it seems you are using Numbers version 2.x
    Numbers 2 does not have the ability to sort Pop-Up Menu entries (except by a painful process of adding or subtracting entries in Inspector).
    Numbers 3 makes Pop-Up Menus a breeze. But it is your choice whether to update to OS X Mavericks and Numbers 3 . Some features have been lost, other features have been added, and there are some workarounds.
    Have a look at these threads before you decide:
    Features that Apple has promised to reinstate:
    http://support.apple.com/kb/HT6049
    Hints on workarounds here:
    https://discussions.apple.com/message/23622372#23622372
    What has been GAINED in Numbers 3 is here:
    https://discussions.apple.com/thread/5473882?start=75&tstart=0
    What has been lost in Numbers 3 is here (with corrections where Apple has already reinstated some lost features in the Numbers 3.0.1 update):
    https://discussions.apple.com/thread/5470448?start=240&tstart=0
    Regards,
    Ian.

  • Albums sorted alphabetically by song title when searching on ipod classic

    I understand that the default for the search feature is to sort songs within each result alphabetically - for instance, you go to "Search" type "Tool" and Select "Tool." Now you see a list of albums by the band, and you can select the one you want, but the songs are always sorted alphabetically by title. Please tell me that this can be changed! A lot of artists actually put thought into the arrangement of their albums (a big surprise, I know) and if I wanted something arbitrary like alphabetical order I would use this cool feature called "shuffle!" Thanks in advance.

    Although the search utility will return artist names, why would you search for an artist name instead of selecting it directly from the Artist menu? The search utility seems much more applicable to searching for song names instead of +Show me all artists whose name begins with or contains 'Tool'.+
    In any case, no you can't change the default sort order of search results. If you want to play songs in their album order, use the Artist or Album menu selection, not Search.

  • How can I sort alphabetically three columns?

    Hi to everybody!
    I've got some problems sorting alphabetically three columns. If I try to sort one column it changes also the others. I want three independent columns and each of them must be sorted out alphabetically.
    In Excel it's so easy: I just have to select the column and push the button "sort the column alphabetically". Why is that so difficult in numbers?
    Check it out: http://yfrog.com/j6screenshot01tj

    l,
    What is the nature of the content in the three columns? If the content is just data, and not calculations or the input to calculations, you can easily accomplish a single column sort in Numbers.
    I see from your screen shot that you are still in the Excel mindset. You have a large table with more rows and columns empty than occupied. To work most effectively in Numbers we usually use only as many rows and columns as necessary, and if we have data that is of another set and not related, we begin a new table.
    So, if your data meets the requirements of the first paragraph and you have trimmed away the excess rows and columns we can do the following: Click once on the label of the column you wish to independently sort. Then click again on this label and drag it up and away from the table to a blank area of the canvas. Perform the sort on the separated column. Then grab the sorted column in the same way as before and move it over the original table, watching the borders between columns highlight as you move over them. The double line between columns identifies the insertion point. When you have your sorted column in the right place, drop it back into the original table.
    Jerry

  • Events not sorted alphabetically on Classic iPod

    In June 2008 I bought a 160GB iPod and synced the iPod from my Macbook Pro that I bought in March. All my 2500 iPhoto photos were in titled events and sorted alphabetically on the event name.
    When I first synced the iPod via iTunes, the events were also in the same alphabetical order on the event name in the iPod. I have synced the iPod many times over the summer and fall and the events on the iPod have remained in that order.
    A few days ago, I did a Software Update on my Macbook Pro and one item was a new version of iTunes (8.0.2). The next time I synced my iPod, the event names were no longer in alphabetical order. I added more photos and synced again but the event names were still out of order.
    I did an iTunes Restore to erase the iPod and restore the current iPod software. That didn't help.
    Any idea how I can get the iPod event name order to match the alphabetical event name order in iPhoto?
    Thanks

    Hello GasMan333,
    Congratulations on your your new MacBook Pro!  With iTunes Match, songs may be matched at a higher quality:
    All the music iTunes matches plays back at 256-Kbps iTunes Plus quality—even if your original copy was of lower quality.
    iCloud: iTunes Match
    http://support.apple.com/kb/PH2588
    The higher quality songs are convenient to have on a computer, but with an iPod, there is a space limitation to consider.  You can choose to have these songs sync over at a lower bit rate to be able to fit more songs onto the iPod.  Check out the following featured discussion for steps:
    How do make songs take up less space on my iPod?
    https://discussions.apple.com/thread/3782747
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Galaxy S6 Edge App sort (alphabetically)

    I have just got the new S6 Edge and have been trying to find how to sort all of my apps into alphabetical order, but there seems to be no way of doing it. I have looked on google and this problem seems to be happening in the UK after the different carriers do whatever they do with the phones as there seems to be no problem in a lot of other place around the world. Has anyone got any idea how to get around this problem 

    Excuse the thread necromancy, I had an S4, that upgraded from KitKat to Lollipop and the app drawer remained sorted alphabetically. New S6 has them higglety pigglety which is of precisely no use to anyone whatsoever. No option to sort. So it seems to be wholly an S6 thing and o2/Telefonica need to bring pressure to bear upon Google/Samsung to allow a AZ sort. Why would I want apps ordered in date of install rather than the universal standard alphabet?! Almost as annoying as Facebook/Instagram installed on the ROM and not uninstallable.

  • My iphone 4s wont turn on with out being pluged in and when i unplug it it dies instantly i pluged it in put it in dfu mode and tried to restore it hoping it might help but its stuck in dfu and has restore error 21 help!!!

    my iphone 4s wont turn on with out being pluged in and when i unplug it it dies instantly i pluged it in put it in dfu mode and tried to restore it hoping it might help but its stuck in dfu and has restore error 21 help!!!

    Hey jestinsinclairr,
    Thanks for using Apple Support Communities.
    After reviewing your post, it sounds like you had one issue and then got a second trying to resolve the first. A frustrating situation for sure. The first article linked has what to do if it is not powering on unless plugged in. The second article addresses the error you are receiving when trying to restore.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Resolve iOS update and restore errors
    http://support.apple.com/kb/TS3694#10
    Check for hardware issues
    Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    Have a nice day,
    Mario

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • Help needed in Sorting Columns (date sorts alphabetically)

    Hi All,
    I have a report query as follows:
    select to_date(period,'MON-YYYY') start_date
    ,exp_type
    ,id
    ,acct_ref
    ,dept_ref
    ,item_date
    ,amt
    from test;
    I need to display the report in the same order as select statement (start_date,exp_type,id etc). I have given default sort order in report attributes and user enabled sort on all columns. The report attributes look as shown below:
    column_name / sort / sort_seq
    start_date / yes / 3
    exp_type / yes / 1
    id / yes / -
    acct_ref / yes / -
    dept_ref / yes / 2
    item_date / yes / 4
    Now my problem is that the start date sorts alphabetically (as varchar) instead of chronologically (date wise). How can I resolve this?
    If I change my default sort order so that start_date is sorted 1st, it works perfectly fine. Is there any restriction for APEX sort that says the column displayed needs to be sorted in the same order? How do I overcome it? Or is it possible to overcome it?
    Any suggestions would be appreciated.
    Thanks,
    Sumana

    Hi,
    Thanks. But no I cannot change it to date, as there are many applications using it for displaying the period. But I found an equivalent date column for that period and tried using that. It was not working.
    I did further analysis and found that even to_char(period) works fine. The problem was something else. In my region query the select statement was
    select exp_type
    ,id
    ,amt
    ,to_date(period,'MON-YYYY')
    from test.
    I then had in region attributes used the arrows to change order of display, so that period appears first. That was the culprit. When I change my region query, to match the order in region attributes the date column as well as to_date(period) both work fine.
    I never knew that the order of select statement and that in region attributes should match each other!!! And hence when posting I did not give importance to the order of my select list. Sorry for that.
    The mystery is how was it working when i changed the sort order to say "period" 1st and then exp_type (2nd)
    Thanks everyone for you help.
    Thanks,
    Sumana

  • Using CDATA in Script (XML)

    Hello,
    I'm trying to create an XML var using CDATA to get some htmlText.
    Sample:
    <fx:Script>
        <![CDATA[
              var newXML:XML = XML("<node><![CDATA["+ myRichTE.htmlText+" ]]></node>")
        ]]>
    <fx:Script>
    <mx:RichTextEditor id="myRichTE" />
    But i get an error on this line. (give it a try, something about an unclosed tag, can't give the exact english error message since i got french UI)
    It seems that you can't use
    <![CDATA[xxxx]]>
    in Script section of an Application (in addition of the main CDATA which contains all Script), since it interprets as a real CDATA.
    And I think I can't do without it to store the htmlText inside an XML node.
    Any ideas ?
    (maybe by "escaping" the CDATA tag ?)
    Thanks a lot.

    Indeed, actually, it is as simple as this :
    <fx:Script>
         <![CDATA[
              myXMLnode = myRichTE.htmlText
         ]]>
    <fx:Script>
    <mx:RichTextEditor id="myRichTE" />
    It is correctly inserted into the XML, by replacing tags with their corresponding html entities.

Maybe you are looking for

  • Problem with set/get attribs in HttpSessions

    I'm collecting data attributes from an LDAP server and storing them in the individual session. The string containing the attribute name is comprised of 3 elements concatenated together: the servet name, the literal "selectID" and a 4 digit sequence n

  • XML parser error occured in oracle 10g

    Hi, XML parser failed while we are using the XMLTYPE.TRANSFORM in oracle 10g product version is 10.2.0.3.0 I am getting the fallowing error message XML-24521: (Error) Element not completed: 'PurchaseOrder' Parser Exception: Element not completed: 'Pu

  • Exchange server 2013 architecture planning

    Hi all, We are planning for a new Exchange 2013 installation : 1 site around 2000 users 1 domain I need some hints about the optimal architecture keeping in mind high availablity and future extensions.   examples : 4 servers with CAS and MAILBOX role

  • cm:search and content caching and

    Hi All, This is my environment : Weblogic Portal 8.1 SP3. Documentum : We are using DCS for connecting to SCS target system and is used as content repository. If we use <cm:search> as below : <% String queryFor25Content = "i_chronicle_id in ('0900000

  • Accidentally erased my Applications, could use some help

    Intending to install Windows with bootcamp, and to format the hard drive as a single journaled disk (forgive my almost certain misuse of terminology if my meaning is clear) to allow partitioning, I restored to my last backup in Time Machine (from 5 m