If it is a basket style filter, you want the basket to catch the grime and thus the fuel flow should be into the basket.
Other than that, most are bi-directional and the direction of install doesn't matter so much. Just be careful. Like MM mentioned, some that are touted as bi-directional have restricted flow in one direction. It still flows, but it is just not free-flowing.