Update chash to be sorted. Not perfect, but should work for now.