How to write a custom filter for ListView with Custom adapter that filter text at runtime and add that text to the top of list
<p>I have a list view that is getting data from server each after 3 seconds new data is adding to the list view.my list view is working fine.For this list view i wrote a custom adapter each row contains some text values and button.I want if any text value is chat request then that row will be first row of the list view.</p>

<p>How can i filter text values at run time so that any row got value chat request then that row should add in list view firstly.</p>

<p>Can anyone help me?</p>

<p>i have not used the edit text for searching i want to implement a method that search for list view row text value and automatically added to the top of list without user intervention.</p>

<p>Can anyone help me for solving out my problem?</p>
