fix for issue #5 - sort order of activities