Ensure that the hash key comes first in a key schema for an index