Sort the list of words alphabetically and separate them by commas.
bed, apple, tree, cat
apple, bed, cat, tree
Complete the following task based on the instruction and optional input provided.### Instruction:
Sort the list of words alphabetically and separate them by commas.

### Input:
bed, apple, tree, cat

### Output:
apple, bed, cat, tree