Add support for order=1 to TrieModel