bugfix: sort json dict keys for consistent testing