AskBug Top Users Widget Not Sorted By Reputation

Solved7.85K viewsIssuesbroken widget issues top-users Widget
1

The Top Users Widget in the AskBug Theme is not sorted by Reputation.

Question is closed for new answers.
Selected answer as best
2

There is a simple fix as follows:

diff -r c5a3c06ecc5a wp-content/themes/askbug/includes/widgets/top_users.php
--- a/wp-content/themes/askbug/includes/widgets/top_users.php	Sun Aug 26 04:08:01 2018 +0000
+++ b/wp-content/themes/askbug/includes/widgets/top_users.php	Sun Aug 26 04:16:03 2018 +0000
@@ -39,6 +39,9 @@
    'ap_query'     => true,
    'role__not_in' => [ 'administrator', 'ap_moderator' ],
    'number'       => $number,
+			'orderby'      => 'meta_value_num',
+			'meta_key'     => 'ap_reputations',
+			'order'        => 'DESC'
   );
     $ap_user_query = get_users( $user_args );
@@ -94,4 +97,4 @@
  register_widget( 'AB_Top_Users' );
 }
  -add_action( 'widgets_init', 'ab_top_users_register_widgets' );
\ No newline at end of file
+add_action( 'widgets_init', 'ab_top_users_register_widgets' );

Selected answer as best