Reply To: Filtering member results.
So you’re creating an additional Members page ?
If not, you don’t need an override.
If you are, you need to change this hook in that override
do_action( 'bp_before_directory_members' )
And call the new hook in the example below.
You need to know the id of the xprofile field that stores gender.
You need to know the value that is stored for Males.
Then you can tweak this code and put it in your theme functions.php or bp-custom.php