Basta usare usort() ed una funzione custom che effettua il parsing e confronta i valori.