Call Routing: Improve order by - sort numerically.

This commit is contained in:
reliberate 2016-03-28 07:36:25 -06:00
parent 5faa72d8b2
commit 22edbabf5d
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ else {
//rework select data query
$sql = str_replace('count(extension_uuid) as count', '*', $sql);
$sql .= ' order by extension';
$sql .= ' order by cast(extension as int)';
$sql .= " limit ".$rows_per_page." offset ".$offset." ";
//execute select data query