title: In Dojo how to add node to a tree in a sorted way?
body: <p>In my Dojo application, I had a tree with nodes sorted by their name. Like this :
  <img src="https://i.stack.imgur.com/PzuQq.png" alt="Tree nodes sorted"></p>
  
  <p>I already built a New form addition, and it can add a new node to this tree, but always at the bottom. Is there a way to insert this newly added node to the store in a correct sorted position? So if I am about to add <code>000-011 - Biaya Teknis Pengacara</code> to this tree, it should be ended up this way :
  <img src="https://i.stack.imgur.com/2Fknu.png" alt="sorted"></p>
  
  <p>To achieve this, currently I must refresh my browser. Surely, this is not what all user wanted.. :)</p>
  
  <p>For the code addition of node itself, here it is:</p>
  
  <pre><code>//TOFIX : add in a sorted way
                          akunStore.newItem(
                              {"id":data.id.toString(),"name":data.name},
                              {"parent": groupsModel.root, "attribute":"groups"}
                          );
                          akunStore.save();
                          akunStore.fetch();
  </code></pre>
  
  <p>I add the <code>fetch()</code> as shown above, but it didn't work, currently.</p>