I know that normal WP_Query's can have an
"orderby" parameter of
"meta_value_num", but when I try to user
"orderby" => "meta_value_num" on a WP_User_Query, it doesn't seem to work. Anyway I can obtain this functionality or is there something I'm missing?
Here's what I've tried to retrieve results ordered by numeric meta values:
$sorted_users = new WP_User_Query(array( 'orderby' => 'meta_value', 'meta_key' => 'satisfaction_rating', 'order' => $order, 'role' => 'subscriber', 'meta_query' => array( array( 'key' => 'satisfaction_rating', 'type' => 'NUMERIC' ) ) ));
Still doesn't seem to work...