Searching for name using JavaScript
<p>When I type G in the field and it filters out all the names whose names contain g in any part of their name. I want only to filter which starts with G. To sort this, i added something like this. </p>

<pre><code>patientSearchResult[i].LastName.toUpperCase().charAt(0)
</code></pre>

<p>But now when i type Gr. i don't get Greg's result... why?</p>
