I have product collection as below,
Array ( [0] => Array ( [entity_id] => 1995 [type_id] => configurable [sku] => WSH06 [has_options] => 1 [created_at] => 2016-05-04 11:23:45 [updated_at] => 2016-05-04 11:23:45 [cat_index_position] => 3 [price] => 42.0000 [tax_class_id] => 2 ) [1] => Array ( [entity_id] => 2002 [type_id] => configurable [sku] => WSH07 [has_options] => 1 [created_at] => 2016-05-04 11:23:45 [updated_at] => 2016-05-04 11:23:45 [cat_index_position] => 1 [price] => 24.0000 [tax_class_id] => 2 ) [2] => Array ( [entity_id] => 2008 [type_id] => configurable [sku] => WSH08 [has_options] => 1 [created_at] => 2016-05-04 11:23:45 [updated_at] => 2016-05-04 11:23:45 [cat_index_position] => 2 [price] => 44.0000 [tax_class_id] => 2 ) )
Now i want to sort this collection based on one array which is having SKUs in it
Array ( [0] => WSH07 [1] => WSH08 [2] => WSH06 )
So that Collection should sort as below
Array ( [0] => Array ( [entity_id] => 2002 [type_id] => configurable [sku] => WSH07 [has_options] => 1 [created_at] => 2016-05-04 11:23:45 [updated_at] => 2016-05-04 11:23:45 [cat_index_position] => 1 [price] => 24.0000 [tax_class_id] => 2 ) [1] => Array ( [entity_id] => 2008 [type_id] => configurable [sku] => WSH08 [has_options] => 1 [created_at] => 2016-05-04 11:23:45 [updated_at] => 2016-05-04 11:23:45 [cat_index_position] => 2 [price] => 44.0000 [tax_class_id] => 2 ) [2] => Array ( [entity_id] => 1995 [type_id] => configurable [sku] => WSH06 [has_options] => 1 [created_at] => 2016-05-04 11:23:45 [updated_at] => 2016-05-04 11:23:45 [cat_index_position] => 3 [price] => 42.0000 [tax_class_id] => 2 ) )
I have disabled the magento default sort order, How i can achieve above sort order. Any help will be aprrecited, Thanks!!!