I am currently creating a sorting method that consists of values from an mysql query.Here's a brief view of the array:\[code\] Array ( [0] => Array ( ['id'] = 1; ['countries'] = 'EN,CH,SP'; ) [1] => Array ( ['id'] = 2; ['countries'] = 'GE,SP,SV'; ) )\[/code\]I have succeeded in making a normal usort based on the numeric id values, but I rather want to sort the array by the content of the "countries" field (if it contains a set string, a country code in this case), and then by the id field.The following snippet was my first idea of how to do it, but I have no idea of how to incorporate it into an working function:\[code\]in_array('EN', explode(",",$a['countries']) );\[/code\]How would you do it?Thanks!