621 | | $orderby = 'ID'; |
622 | | } elseif ( 'meta_value' == $qv['orderby'] ) { |
623 | | $orderby = "$wpdb->usermeta.meta_value"; |
624 | | } else { |
625 | | $orderby = 'user_login'; |
626 | | } |
| 621 | $orderby = 'ID'; |
| 622 | } elseif ( 'meta_value' == $qv['orderby'] ) { |
| 623 | $orderby = "$wpdb->usermeta.meta_value"; |
| 624 | } elseif ( 'include' == $qv['orderby'] && ! empty( $qv['include'] ) ) { |
| 625 | $include = esc_sql($qv['include']); |
| 626 | $include = implode( ",", $include ); |
| 627 | $orderby = "FIELD( {$wpdb->users}.ID, {$include} )"; |
| 628 | } else { |
| 629 | $orderby = 'user_login'; |
| 630 | } |