b's = BEADGCF
#'s = FCGDAEB
The reason for this is because when writing the key sigs, this is the order you will use for either sharps or flats.
(i.e. Eb major key sig would have the flats starting from left, moving right = Bb - Eb - Ab)
(i.e. D major key sig would be as follows = F# - C#)
Hope this helps even the slightest, man