I am unable to iterate the select options. Code execute once and not showing all users. Might be i'm unable to iterate the all values. Please send me code snippets. To filter UserNames by Ascending/Descending options in my drop down list, so every time i select an option (ASC/DESC), usernames will sort respectively in that order.
Below code I have created an object of StringBuffer class to append all values and displaying.