Avoid `unscope(:order)` when `limit_value` is presented for `count`
#26972

12642
kamipo wants to merge kamipo:avoid_unscope_order_when_limit_value_present into rails:master

We do not currently have an analysis of these two commits