Fixed bug: eventArray would not have enough events, call exception on index beyond range in the detailedActivityLog sorting process.