function get_sortable_columns() {
return array(
- 'member_id' => array('member_id', true),
- 'user_name' => array('user_name', true)
+// 'member_id' => array('member_id', true),
+ 'user_name' => array('user_name', true),
+ 'last_name' => array('last_name', true)
);
}
$sortable_columns = $this->get_sortable_columns();
$orderby = BUtils::sanitize_value_by_array($orderby, $sortable_columns);
- $order = BUtils::sanitize_value_by_array($order, array('DESC' => '1', 'ASC' => '1'));
+ $order = BUtils::sanitize_value_by_array($order, array('ASC' => '1', 'DESC' => '1'));
$query.=' ORDER BY ' . $orderby . ' ' . $order;
$totalitems = $wpdb->query($query); //return the total number of affected rows