title: CYPHER store order of node relationships of the same label when I create
body: <p>I have multiple relationships that stem from a node. Each of these relationships are of the same label. The relationships point to a child node (not neccesarily unique). After I fetch all child nodes that link to the parent by this relationship label, I order them by a relationship property called trueindex. I then have an array of nodes that my client can iterate through in the correct sort order.</p>
  
  <p>The problem comes when I try to "push, pop, unshift, etc..." onto this array. If I want to add a new relationship to the front of the order, I have to create a new relationship, use it to link the parent to the child node, then add a 0 value to the relationships trueindex property. The problem is that there already is a relationship with a trueindex value of zero and I need to perform somesort of casecading function that increments the trueindex of all other relationships (of the same type that all stem from that same parent node). I am trying to find a way to get this "array-like" index number functionality for free</p>
  
  <p>The only way I can think to do so is to first delete all relationships of that particular label that stem from the parent. And then rewrite the entire array (with all the prexisting relationship that increment their trueindex by one) in order to reflect the correct order. This is fine for small cases but if I plan for a parent node to have a significant amount of relationships, then its a problem to rewrite the entire array (set of relationships) every time I want to add, remove by index, pop, etc and yet still maintain an order of relationships that stem from the parent node.</p>
  
  <p>Does Neo4j have some sort of relationship feature to write to the correct order when creating new relationships?</p>
  
  <p>I am very grateful for advise you can offer.</p>