When I am using paginator sort in cakephp 3 it is not working properly.It is display the following order
Sno
1
11
13
18
2
25
3
instead of
Sno
1
2
3
11
13
18
25
My view page code is
<th> <?= $this->Paginator->sort('Sno') ?></th>
<th><?= $this->Paginator->sort('id','Order ID') ?></th>
<th><?= $this->Paginator->sort('user_id','Cust ID') ?> </th>
<th><?= $this->Paginator->sort('first_name','Cust Name') ?></th>
<th><?= $this->Paginator->sort('created_date','Date') ?></th>
<th><?= $this->Paginator->sort('order_qty','Order Qty') ?></th>
Can any body please help me. Thanks in advance.