more work on community sort