some images. The trick with the filter is to mount it horizontally and have the tank return at 12 o'clock. The diagram maks it look like it is alongside but this is a fault with the sketch.
worth checking which tank you have. The sketch below is for the later 1980s set up with the tank vent running to a canister in the engine bay. Yours probably has a fuel line and a return line and a vented filler cap.
BagusJeep lives in Bali.
1981 CJ7 258ci - Bagusjeep
1984 CJ7 258ci - Puthijeep
1981 J20 258ci - Gladys
1951 Willys CJ3A/MB/M38 - Little Willy
1995 Cherokee 4.0 - CHEROKEE