title: Sorting answers in blade LARAVEL
body: <p>I have this code, and I want to sort them by order, I have the <code>order</code> column in database which always takes <code>1, 2, 3, 4</code> and I want the answers to be in that order how can I do this on laravel blade .</p>
  
  <pre><code>&lt;div class="form-group" id="group-form-id"&gt;
      &lt;label id="correct_answer" style="color: #00a65a;"&gt;
          @lang('test-results.correct_answer'):
  
          &lt;div style="line-height: 8px; padding-top: 5px;"&gt;
              &lt;?php $i=1; ?&gt;
              @foreach($question-&gt;answers as $answer)
                  @if($answer-&gt;order)
                      &lt;span id="test_span"&gt;
                          &lt;br&gt;
                          &lt;em style="padding-right: 10px; color: #999;"&gt;
                              {{ $i }}.
                          &lt;/em&gt;
                          {!! $answer-&gt;text !!}
                      &lt;/span&gt;
                      &lt;hr style="width: 500%;border-top: 1px solid rgba(238, 238, 238, 0.37);"&gt;
                  @endif
                  &lt;?php $i++; ?&gt;
              @endforeach
          &lt;/div&gt;
      &lt;/l
  </code></pre>