sort behaviors by timestamp in popups