Implemented sorting

- Sorting
- Add Events