The sortByDesc in your code is a Laravel collections function. You should be sorting before calling the get() function, like below. So that it sorts in database level. And, you can also use with() for eager loading author relation.
Quote::where('is_approved', 1)->latest('created_at')->with('author')->get();
Probably the reason it breaks your code is you needed to do values()->all() as shown in the documentation.