Man sentenced for selling drugs to informant