Sort users by user Role- members page


I am developping a site with 2 differents users roles. And I want that user could filter/sort members by role and also by profile filed (Town), from members page.
I tested different code but, anyone works as I expected. Neither I found a plugin that assure this issue
I am using KLEO theme, WordPress v.4.3.1, BuddyPress v 2.4.0.

Thanks for your help