Add sorted set to schema generator.
Implement Comparable entities.