split even odd and sort