Add sort order to external activities.