code: function(items) {
              var hasRelativePositioning = hasNumberProperty(items, 'relativePosition');
  
              if(hasRelativePositioning) {
                  items.sort(function(a, b) {
                      return a.relativePosition - b.relativePosition;
                  });
              }
          }
docs: Method that sort items, depending on their relativePosition