title: Sorting data from table field octobercms
body: <p>I want to show data in order of column where the num are given in octobercms,</p>
  
  <p>default.htm</p>
  
  <pre><code>{% set post = __SELF__.post %}
  
  &lt;div class="content"&gt;{{ post.content_html|raw }}&lt;/div&gt;
  
  {% if post.featured_images.count %}
      &lt;div class="featured-images text-center"&gt;
          {% for image in post.featured_images %}
              &lt;p&gt;
                  &lt;img
                      data-src="{{ image.filename }}"
                      src="{{ image.path }}"
                      alt="{{ image.description }}"
                      style="max-width: 100%" /&gt;
              &lt;/p&gt;
          {% endfor %}
      &lt;/div&gt;
  {% endif %}
  
  &lt;p class="info"&gt;
      Posted
      {% if post.categories.count %} in
          {% for category in post.categories %}
              &lt;a href="{{ category.url }}"&gt;{{ category.name }}&lt;/a&gt;{% if not loop.last %}, {% endif %}
          {% endfor %}
      {% endif %}
      on {{ post.published_at|date('M d, Y') }}
  &lt;/p&gt;
  &lt;p class="info"&gt;
  
      {% for blocks in post.blocks %}  // here the output of this loop must show in order which are given in column in same table which is relation_sort_order
      &lt;b&gt; {{ blocks.title}}&lt;/b&gt;
  
      {{ blocks.content_html|raw }}
  
      {% endfor %}
  &lt;/p&gt;
  </code></pre>
  
  <p>how i can show the blocks in number in relation_sort_order field</p>