Added SortKeyGenerator class for pluggable sort keys.