Fix issue when sorting activities by filename