use hash sorting for gather char statistics (for small texts only)