which is the first state court to hear a case and which is the first federal court to hear a case?

The best first place to try on general questions like this is google (or your favorite search engine).

You will find many examples, illustrations, discussions, and videos.
You're probably sitting at a computer -- use it.