x First time here? Check out the FAQ

Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!

  • Avatar88posts112karma

    DynamicNodeList OrderBy concrete DynamicNode properties

    John started this topic October 13, 2011 @ 07:18

    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


  • Avatar393posts763karma
    Comment with ID: 109795
    Moshe Kariti posted this reply March 4, 2012 @ 03:21

    Any luck?


  • Avatar393posts763karma
    Comment with ID: 109796
    Moshe Kariti posted this reply March 4, 2012 @ 03:50

     

     

     

     

     

     

     

     

     

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


Please login or Sign up To post replies