take a hash of several arrays and convert each element into a key with a value
sorts the new hash alphabetically
add the full legacy data to convert into the code