Sorted Events

Please don't judge me for how bad this code is