Fixes #35947 (#35950)
Fixes #35947 (#35950)

This fixes #35947. Since collections can deal with objects then the method sortByMany taken from Arr should be able to deal with objects as well
hafezdivandari/framework,mul14/laravel-framework,mul14/laravel-framework,crynobone/framework,arturock/framework,crynobone/framework,arturock/framework,notebowl/laravel-framework,leo108/laravel_framework,lucasmichot/framework,JosephSilber/framework,stevebauman/framework,dwightwatson/framework,bytestream/framework,morrislaptop/framework,mul14/laravel-framework,tomschlick/framework,arturock/framework,JamesForks/framework,morrislaptop/framework,lucasmichot/framework,laravel/framework,leo108/laravel_framework,stevebauman/framework,tomschlick/framework,dwightwatson/framework,driesvints/framework,samlev/framework,samlev/framework,driesvints/framework,JosephSilber/framework,tomschlick/framework,bytestream/framework,mul14/laravel-framework,laravel/framework,hafezdivandari/framework,notebowl/laravel-framework,JamesForks/framework