Sort keys for consistent output.