Thanks Adam.
I am now trying to add sorting to the user activity reports module but I am having trouble sorting the User, Type and Label column since the values that are displayed in these columns are calculated and not fetch directly from the DB using the query used.
Can you help me with this? Thanks.