v.21.9Performance Improvement

Reduce Memory Usage with ORDER BY Primary Key

Reduce memory usage and number of read rows in queries with ORDER BY primary_key. #25721 (Anton Popov).