bool lessExperience(const Employee &lv, const Employee &rv) { return lv.getExperience() < rv.getExperience(); }
//if two employees have equal salaries and experience, they compare equal bool operator==(const Employee &lv, const Employee &rv) { return ( ( lv.getExperience() == rv.getExperience() ) && ( lv.getSalary() == rv.getSalary() ) ); }