Make config var sort order deterministic.

Fixes test failures on 5.17.