Adds support for sorting pastes.

- Adds events for sorting sorts.
- Adds ACE constructs on new entries.