Adding more efficient sorting for categorical feature splitting.