I don't think it really matters, however it makes sense to keep the crud out of the pump as well as the carb.
I run an electric pump mounted on my frame rail next to my steering box. My filter is located directly before it. This set-up has been running great for 40k over the last 7 years. I've only changed the filter once or twice that I remember, same pump, same carb.