Updates task history with sorted list of historical times
Updates TAG to take the app name from Strings