Should EQ come before compression? What’s the right order?

Snare stuff – can you achieve these sounds?