Which end goes up toward the filter base.

The end that has the screw-on cap will be closest to the filter base, and therefore should go into the filter housing first.