See the thread Lyr Req: Swingin' the Alphabet / Spelling Bee
I traced the song to what I believe is its origin: THE SPELLING BEE by Septimus Winner (1875).
The Three Stooges version is also mentioned in the thread Lyr Req: The Alphabet Song variations.