title: How to sort data from database in laravel html
body: <p>I am trying sort specific row in the table. But i stuck middle of it. I m using Kyslik\ColumnSortable\Sortable; in the model file. But no actual effect. Any idea for this?</p>
  
  <pre><code>class estates extends Model
  {
  use Sortable;
  
  protected $fillable = [ 'Entry', 'Price' ];
  
  protected $table="estates";
  
  public $Sortable = ['Entry', 'Price']; 
  }
  </code></pre>
  
  <p>My Controller;</p>
  
  <pre><code>public function sumos()
  {
    $data['este'] = estates::all();
    return view('pages.sumo', $data);
  
    return view('pages.sumo',['este' =&gt; estates::sortable()-&gt;get()]);
  
  }
  </code></pre>
  
  <p>and in html; </p>
  
  <pre><code>&lt;table align="center"&gt;
  &lt;tr&gt;
      &lt;td colspan="11" id="header"&gt;&lt;h1&gt;物件概要&lt;h1&gt;&lt;/td&gt;
  &lt;/tr&gt;
      &lt;tr&gt;
          &lt;th width="340px"&gt;会社名&lt;/th&gt;
          &lt;th width="80px"&gt;物件名&lt;/th&gt;
          &lt;th width="135px"&gt;所在地&lt;/th&gt;
          &lt;th width="135px"&gt;総戸数&lt;/th&gt;
          &lt;th width="80px"&gt;間取り&lt;/th&gt;
          &lt;th width="100px"&gt;専有面積&lt;/th&gt;
          &lt;th width="80px"&gt;バルコニー面積&lt;/th&gt;
          &lt;th width="100px"&gt;竣工年月日&lt;/th&gt;
          &lt;th width="100px"&gt;@sortablelink('Entry', '入居年月日')&lt;/th&gt;
          &lt;th width="100px"&gt;@sortablelink('Price', '価格')&lt;/th&gt;
          &lt;th width="100px"&gt;販売会社名&lt;/th&gt;
      &lt;/tr&gt;
  &lt;table&gt;
  
  
  @foreach($este as $row) 
  &lt;table align="center"&gt;
      &lt;tr&gt;
          &lt;td width="340px"&gt;Company Name&lt;/td&gt;
          &lt;td width="80px"&gt;{{ $row-&gt;Building_Names }}&lt;/td&gt;
          &lt;td width="135px"&gt;{{ $row-&gt;Addresses }}&lt;/td&gt;
          &lt;td width="135px"&gt;{{ $row-&gt;HouseHolds }}&lt;/td&gt;
          &lt;td width="80px"&gt;{{ $row-&gt;Rooms }}&lt;/td&gt;
          &lt;td width="100px"&gt;{{ $row-&gt;Balconys }}&lt;/td&gt;
          &lt;td width="80px"&gt;{{ $row-&gt;Extents }}&lt;/td&gt;
          &lt;td width="100px"&gt;{{ $row-&gt;Constrution }}&lt;/td&gt;
          &lt;td width="100px"&gt;{{ $row-&gt;Entry }}&lt;/td&gt;
          &lt;td width="100px"&gt;{{ $row-&gt;Price }}&lt;/td&gt;
          &lt;td width="100px"&gt;{{ $row-&gt;Company }}&lt;/td&gt; 
      &lt;/tr&gt;
  &lt;/table&gt;
  @endforeach
  </code></pre>
  
  <p>Any idea for how to solve(how to sort) specific data?
  Thank you</p>