sort keys so we get predictible order for test