code: function compareEntities (a, b) {
    if (a.params && b.params && a.params[0] < b.params[0]) {
      return -1
    } else if (a.params && b.params && a.params[0] > b.params[0]) {
      return 1
    } else {
      return 0
    }
  }
docs: /* Checks which order two entities should be placed in the list of entries