How to sort view by a field that is part of a field collection? I had searched solution for my problem, but I didn’t found anything good.

I have custom a node type Client with Field Collection Product. 

My field collection has two fields:


name of the product 
date value


In the view I can see Client fields name &amp; surname and field collection Product &amp; date value. 

How can I sort by date value?
Duplicate of Sort view items by field collection&#39;s field value (But it's answer is not accepted yet)

You can use field_collection_views module which it creates a default View of field collection type. Its address is /admin/structure/views/view/field_collection_view and I recommend you clone this View and configure the rest of the options. The Fields section contains a few items that are very helpful, like Host Entity ID, Host Entity Type and ... .