x First time here? Check out the FAQ
  • Avatar87posts111karma

    DynamicNodeList OrderBy concrete DynamicNode properties

    John started this topic October 13, 2011 @ 07:18 , this topic was edited at: Sunday, March 4, 2012 3:50 PM

    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


  • Replies

  • Avatar279posts572karma
    Comment with ID: 109795
    mkariti posted this reply March 4, 2012 @ 03:21

    Any luck?


  • Avatar279posts572karma
    Comment with ID: 109796
    mkariti 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