title: How to sort by custom column in users section in worpdress
body: <p>I have 2 custom columns in users section in word press "Store name" and " Date" These 2 are saved in users_meta table in DB , How can i show data in User admin list sorted by "Store Name" and then by "Date". My current code till now to add column heading and fetching them from user_meta in users section is as follow.</p>
  
  <p><strong>Themes Function.php</strong> </p>
  
  <pre><code>/* Adds a store name and date column to the user display dashboard.
  *
  * @param    $columns    The array of columns that are displayed on the user dashboard
  * @return           The updated array of columns now including zip codes.
  */
  function theme_add_user_Store_name_column( $columns ) {
  
   $columns['Store_name'] = __( 'Store name', 'theme' );
   $columns['DATE'] = __( 'Date', 'theme' );
   return $columns;
  
   } // end theme_add_user_Store_name_column
   add_filter( 'manage_users_columns', 'theme_add_user_Store_name_column' );
   /**
  * Populates the store name and date column with the specified user's store name.
  *
  * @param    $value      An empty string
  * @param    $column_name    The name of the column to populate
  * @param    $user_id    The ID of the user for which we're working with
  * @return           The store name associated with the user
  */
  function theme_show_user_Store_name_data( $value, $column_name, $user_id )   {
  
   if( 'Store_name' == $column_name ) {
       return get_user_meta( $user_id, 'Store_name', true );
   }
  
   if( 'DATE' == $column_name ) {
      return get_user_meta( $user_id, 'DATE', true );
   }// end if
  
   }  
   // end theme_show_user_Store_name_data
   add_action( 'manage_users_custom_column', 'theme_show_user_Store_name_data', 10, 3 );
  </code></pre>