generate lucene Sort from symbols