guess we have enum like this
enum Role{ MANAGER, ADMIN, USER }
and also we have class
public class User{
String userName;
Role userRole;
}
then we have Set of users. I want to sort this user Set according to role enum. Users with role as MANAGER must come first and users with the USER Role must go to the end of the set.