add lastActivity to sort fields