Yes, it's true. Swedes get priority on jobs.
It is that way all over the world. And rightly so. It would seem a little odd to me if a nation told it's own people that they don't come first.
Swedes get first priority, then other EU citizens and then everyone else.
However, you must also remember that once you move here and have been given residency, you have almost all the same rights to a job as a Swede would. After all, you are now part of the Swedish community.
Would be kind of harsh to give jobs to foreigners when and if you don't have jobs to give your own people
Racism is here as it everywhere else. No more, no less. Wherever you find people, you will find racism.