title: Sort child nodes by date - Razor Umbraco
body: <p>For the following examples, I'm using a content tree which looks like this:
  <a href="http://i.stack.imgur.com/UNU7G.jpg" rel="nofollow">Content tree</a></p>
  
  <pre><code>@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
  @{
      var home = Model.Content.Descendants().Where(x =&gt; x.DocumentTypeAlias == "BlogContainer");
  
      &lt;div class="container"&gt;
          &lt;ul&gt;
              @foreach (var item in home)
              {
                  foreach (var items in item.Children)
                  {
                      foreach (var baby in items.Children.OrderBy("date desc"))
                      {
                          var date = baby.GetPropertyValue&lt;DateTime&gt;("date");
  
                          &lt;li&gt;@items.Name - @baby.Name - @date&lt;/li&gt;
                      }
                  }
              }
          &lt;/ul&gt;
      &lt;/div&gt;
  }
  </code></pre>
  
  <p>And the result is <a href="http://i.stack.imgur.com/UtGg5.jpg" rel="nofollow">Result three</a> I need to collect all items and set order by date</p>