Sorting error in Glittering caves of Aglarond

In the lat problem of this video.
We are sorting the vector in descending order shouldn’t we sort in ascending order?

As bulbslit represent bulbs which are glowing so sorting in descending will make them to toggle the row in which maximum bulb are glowing. As the problem also works fine, just wondering how are we getting correct answer when we are solving problem in descending order.

I hope I have cleared your doubt. Please mark this as resolved.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.