How to do Laravel Order by Relationship Field

If you are stuck for Laravel Order by Relationship Field, this post may be helpful for you to sort it out.

Here, we can sort out item types.

 

Now, if you need to add with() method, you can apply here too.

 

Hope, it will work. Drop your comment if it is required.