Sales, median prices show gains in October in Illinois