The sharps in order are: F#, C#, G#, D#, A#, E#, B#
The flats in order are: Bb, Eb, Ab, Db, Gb, Cb, Fb
The accidentals are cumulative. G Major has an F#, D Major has D# and F#, and so on. By learning the Gb/F#, you have learned all the accidentals and the proper order.