Two men have been sentenced for drug dealing across West Sussex.