For example, if I have enumeration with "good", "better", "the best" values, I want to sort my search results by field that holds one of this values in string representation.
I have few purposes:
1) Create CustomAnalyzer that produces numeric value from enum: good -> 1, better -> 2, the best -> 3
2) Implement FieldComparator (I don't know how)
Any ideas?