Hmm... Well, I'm not very good with creating templates, so unless you want to, I would eliminate that option. And if the second option works, we can try that. I don't know if it will or not but I don't know why it wouldn't. I like your thinking! That would probably work. Can you test that out for me?
For order to make it work, you have to add the category in source (instead of after you finished). For instance in the Gwyneth-article: [[Category:Celebrities|Paltrow, Gwyneth]]. This makes the article being categorized by her last name, instead of her first one. Check it out, I have categorized it by her last name. All you need to do is to add the category in source mode, and put her last name first (if that give any sense).