fix activity sort incorrect bug