0
工作了數當我使用分頁程序排序CakePHP中3它不工作properly.It是顯示以下順序
Sno
1
11
13
18
2
25
3
instead of
Sno
1
2
3
11
13
18
25
我的看法頁面代碼是
<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>
任何機構請幫助我。 在此先感謝。
它正在工作,因爲它是一個字符串比較。而在'字符串世界'中,'CUS_11
eballes