The classiest person I ever knew placed me before him on a paper just to be nice. Not only was he responsible for getting the grants funding our research, but the heft of both the theoretical and paper authorship work. I'm no longer in R&D and/or academia, but at that point I decided to do the same for someone if I ever have the opportunity to write a noteworthy paper with someone who is my junior.