barbell curls and shrugs work totally different muscle groups therefore it probably does not matter at all.
unless you are also trying to work grip when you do shrugs, then you should do curls first so that your forearms won't be totally wasted for curls.