Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Write an algorithm for solving an anagram.

### Response:
1. Get the anagram as input.
2. Split the anagram into individual characters.
3. Sort the characters in alphabetical order.
4. Compare the sorted characters with words in a dictionary to form matches.
5. Return the matches.