i have an array that contains text and html. myarray[1] contains the following.. myarray[2] contains the same thing just different name 'john' and so on

```
153); color: white; cursor: pointer; font-size: 12px; font-weight: normal; font-family:
 Arial;" onmouseover="this.style.backgroundColor = 'white';  this.style.color='#336699'"
 onmouseout="this.style.backgroundColor = ''; this.style.color = 'white'; " 
onclick="if(top.mail.checkDataset()) mail.execFunction('javascript: changeMain(\'orderCreate1.do\')')">

<img alt="" src="images/round-white-bullet.gif" height="10" width="10"> John<br>

```

how can i sort the whole array so that it ignores everything and sortsd by the name 'john' in this case? the names always come after the image and before the `br` if that helps