Putting your nation above the globe is perfectly normal. Everyone has a hierarchy of values, most people put themselves at the top, and then their immediate family next, and then their friends, and then their neighbors, then their town/city, then their state and then their country and then finally globally.
You'll go to the funeral of a family member, and some of your friends depending on how close they are, and maybe a neighbor at a stretch, but not a random person in your town, certainly not a random person in your state, country or the globe. There's a reason for that hierarchy. and that's because in order to be able to help other people further down the hierarchy you need to protect your own interest first and that's expressed by emotional attachment to people. What are you told when doing the plane emergency routine? Put your own oxygen mask on first BEFORE you do that of your kids, because you can't help them if you pass out. America and most other modern western countries spend vast amounts of money on foreign aid, on lending military to keep the peace and provide aid during disasters, they export science and technology. They're only capable of doing that if they put the nation first so the nation prospers, if the nation prospers it's in a better position to help the rest of the planet. Here's another example, Bill gates is tackling the 5 most deadly diseases, he would not have been able to do that had he not put him and his business first.
If you put someone below in the hierarchy artificially to the top then what happens is you sacrifice things closer to home, as things closer to home start to suffer your ability and resources to help other more distant people are crippled. It's the same with any kind of socialist campaign that seeks to prop up other people up at the personal expense of the successful. Taking resources from the successful people/businesses/countries cripples their ability to continue to generate resources. Not only is nationalism to some degree normal but it's also rational even if you goal is to help other people, just like it's rational for the parent to put on their oxygen mask and secure themselves before they attempt to help their kids.