Ah ok thanks both of you, that suffices. I wondered why the word list was in such a weird order. Any idea if the permutation from alphabetical order is something simple? That would allow membership testing by binary search instead of needing an extra data structure.
https://hackaday.com/2022/02/08/wordle-reverse-engineering-a...