fix activity sort