Add optimization to QSort to handle the case when a lot of rows are the same.