var sorting = {
  keypress:function (find_friend) {
    $('tr.sort').each(function() {
      var user_name = $($(this).children()[1]).html();
       if ( user_name.toLowerCase().indexOf(find_friend.toLowerCase()) == 0 ) {
        $(this).css('display', 'block');
       }
       else {
        $(this).css('display', 'none');
       }
    })
  }
};