Don't rely on a stable dictionary sort