Secret Sorting Order

Limits: 277h46m40s, 1.0 GB

You will be given a list of words which were sorted based on some unknown ordering among the letters of the alphabet, very likely to be different from regular Latin lexicographic order. Your task is to find the correct ordering of all the letters from the given words.


This is a companion discussion topic for the original entry at https://toph.co/p/secret-sorting-order