PIM-1230 : Sort family on product grid doesn't works

Bug fix: [yes]
Feature addition: [yes]
Backwards compatibility break: [no]
Unit test passes: [yes]
Behat scenarios passes: [yes|no]
Checkstyle issues: [no]
Fixes the following jira:
 - PIM-1230
 - PIM-1238