The order of the flats in a key signature is:
To determine the key signature in a sharp key:
Basic Music Theory-Treble and Bass Clef notes, Key Signatures, Accidentals, Enharmonics, Simple Time Signatures