Program now with sort, and activityview as v1