title: custom catcomplete doesnt show results when contain multiple categories
body: <p><code>enter code here</code>I am trying to reproduce the search suggestion in facebook.  That it shows on the same box results of different 'types' with a header (persones, groups, pages, ..)</p>
  
  <p>Basically i need to group the results by type and add a non-cliclable header with the name of the type (example: user, group); Just like facebook does:</p>
  
  <p><img src="https://i.stack.imgur.com/HLZZX.png" alt="enter image description here"></p>
  
  <p>This is the custom catcomplete from jquery ui page:</p>
  
  <pre><code>$.widget( "custom.catcomplete", $.ui.autocomplete, {
                                  _renderMenu: function( ul, items ) {
                                      var self = this,
                                          currentCategory = "";
                                          $.each( items, function( index, item ) {
                                              if ( item.category != currentCategory ) {
                                                  ul.append( "&lt;li class='ui-autocomplete-category'&gt;" + item.category + "&lt;/li&gt;" );
                                                  currentCategory = item.category;
                                              }
                                              self._renderItem( ul, item );
                                          });
                                  }
                              });
  </code></pre>
  
  <p>-EDIT-</p>
  
  <p>Can be tested here by typing 'bootcamp' on the serch field (no need to login): http:// 209.51.221.243/integracion/login.php   (type 'deya' works, type 'bootcamp' doesn't work</p>
  
  <p>Wich is working fine when is only one type of results, but when there are more than one, like in this response:</p>
  
  <pre><code>[{"value":"Donde puedo descargar los drivers de bootcamp?","id":"1","category":"Ayudas"}][{"value":"Donde puedo descargar los drivers de bootcamp?","id":"1","category":"Ayudas"},{"first_name":"bootcamp","last_name":"bootcamp","id":"95","value":"bootcamp bootcamp","category":"Usuarios"}]
  </code></pre>
  
  <p>it doesn't show any ressult, why?</p>