Dehumidifiers work best when they are located at the floor level, but routing the drain line down hill from the dehumidifier to the sump may require that the dehumidifier be raised up enough for this downhill flow of 1/8-1/4" per foot of run. A small dip of slightly more than the diameter of the hose will act as a trap to keep air from flowing backwards from the sump. If you can't run the drain line sufficiently down hill from the dehumidifier, they make small pumps with float switches, called condensate pumps, which can be placed in the dehumidifier. You could then run the line from this pump uphill as much as 8 feet to reach the drain. I had to do this with all of the condensate from the whole house air conditioner in my last house. I piped it from the center of my basement to the washing machine drain in the corner of the basement.
Central North Carolina