title: jsTree sort function ridiculously slow
body: <p>I am writing a Chrome extension for Delicious bookmarks. My background.js file fetches the bookmarks on browser open and creates the object required for jsTree to build a proper tree.</p>
  
  <p>If I disable jsTree's sort plugin, the bookmarks appear immediately when I click the popup. If I enable the sort function there is a ~2 second delay between click and displaying of data.</p>
  
  <p>I tried pre-sorting all of my data in the background script and passing it to the popup pre-sorted, but jsTree does not honor this sorted data.</p>
  
  <p>I only have ~90 tags and ~400 bookmarks. Is there a config option I can use to make this faster? Here is what my jsTree looks like.</p>
  
  <pre><code>$('#jstree').jstree({
      'close_all': -1,
      'core': {
          'animation': 0
      },
          'json_data': {
          'async': true,
          'data': data
      },
  
      'progressive_render': true,
      'themes': {
          'theme': 'classic',
          'dots': false,
          'icons': true
      },
  
      'sort': function (a, b) {
          return this.get_text(a) &gt; this.get_text(b) ? 1 : -1; 
      },
  
      'types': {
          'valid_children': [ 'folder' ],
          'types': {
              'folder': {
                  'valid_children': [ 'file' ],
                  'max_depth': 1
              },
          }
      },
  
      'plugins': [
          'json_data',
          'themes',
          'sort',
          'types',
      ]
  });
  </code></pre>