I'm thinking it's a good idea to spend my money on Christmas gifts for friends before buying them for my own family
Do you care more for your friends than your family?
They are my friends. I always want to spend my money on them.
It is normal to care for your friends but you should put your family ahead of them. They will be there for you for the rest of your life while friendships can end.
I think family is the most important group, so maybe you're right that they should be treated the best.
I'm glad to see you agree about the value of family. Gifts will mean much more to your family than they will to your friends.