The Prime Minister's job is to do what she believes to be best for the country first and her party second.
Yes, supposedly, but i can't recall a single politician who didn't reverse that order. It might be fair to say that they put themselves first, then their party, then their country.