If I understand this correctly, there are a few things that must/should be followed when installing a dishwasher.
1) A high loop (attached as high as possible in the cabinet)
and
2) Some jurisdictions may require an air gap.
a) The air gap can be on the counter pointing to the sink
or
b)...