/**
  * Decimals need to be casted to the proper type for sorting
  *
  * @param QueryBuilder $QB
  * @param string $tablealias
  * @param string $colname
  * @param string $order
  */
 public function sort(QueryBuilder $QB, $tablealias, $colname, $order)
 {
     $QB->addOrderBy("CAST({$tablealias}.{$colname} AS DECIMAL) {$order}");
 }