Try to fix random test failures on postgres.

Sorting in postgres is undefined and no based on the primary key when
sorting is not supplied.
Fallback to the default renderer if the config key is missing.
Fix CS error