quick sort fix for billing events