For major scales:
Order of sharps: f, c, g, d, a, e, b
(fat cats greet da a e b (or aggrivated elite boogers)

....stupid, yes I know...but, hey! It helped me.....)
Order of flats: b, e, a, d, g, c, f
(notice anything interesting?....bead....greatest common factor...)
(making up little ditties really helps)
Okay. I don't know if this is what you want to know, but it relates to the circle of fifths.....so I'm gonna post it here. (NOTE: this is just the major circle of fifths)
As you go around the circle, you add on one sharp...once you reach all seven sharps, you 'switch to flats' and take them off one by one.
The circle is divided into three different areas: c-e, b-c sharp, and a flat - f.
In the C-E area: the right hand's fourth finger ALWAYS hits the seventh note. (example: the scale of C - hits B)
the left hand's fourth finger ALWAYS hits the second note. (example: the scale of D - hits E)
In the B-C sharp area: right hand's fourth finger ALWAYS hits A-sharp/B-flat. (example: scale of B-flat - fourth hits B-flat)
left hand's fourth ALWAYS hits G-flat/F-sharp. (example: scale of c-sharp - fourth hits G/flat)
In the last area, the A-flat - F, is abit different. The key F is played just like area C-E. (R.H. fourth on the seventh note, L.H. fourth on second note) But, for A-flat, E-flat, and B-flat scales, the R.H. fourth will be on B-flat, and the L.H. fourth will be on the fourth note of the scale. (example: scale E-flat - L.H. fourth hits A-flat) On the scale A-flat, you start with your third finger on both hands. (this rule applies also to the scale of E-flat but not B-flat or F)
I found that if you know where your fourth finger goes, the rest of the fingers usually fall into place on their own.