Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • John 112 karma points
    Oct 13, 2011 @ 07:18
    John
    0

    DynamicNodeList OrderBy concrete DynamicNode properties

    Hi. I've read already on these forums that there was a bug with OrderBy on the DynamicNodeList when trying to use concrete properties on the DynamicNode; eg:

    Model.Descendants("alias").OrderBy("customProperty desc") // will work
    Mode.Descendants("alias").OrderBy("CreateDate desc") // won't sort at al

    I was pretty sure I was using the latest build of Umbraco but I downloaded the latest version of umbraco.MacroEngines.dll just in case. Unfortunately, this didn't change anything. 

    Any ideas?

    Cheers

  • Moshe Kariti896 karma points
    Mar 04, 2012 @ 15:21
    Moshe Kariti
    0

    Any luck?

  • Moshe Kariti896 karma points
    Mar 04, 2012 @ 15:50
    Moshe Kariti
    0

     

     

     

     

     

     

     

     

     

    Used this one: SubnodeList.Items.OrderByDescending(=x.Id).Take(SubnodeList.Items.Count())

Please Sign in or register to post replies

Write your reply to:

Draft
Our.umbraco.org is the community mothership for Umbraco, the open source asp.net cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community.