@Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;

    PermissionEntity that = (PermissionEntity) o;

    return !(id != null ? !id.equals(that.id) : that.id != null) &&
        !(permissionName != null ? !permissionName.equals(that.permissionName) : that.permissionName != null) &&
        !(permissionLabel != null ? !permissionLabel.equals(that.permissionLabel) : that.permissionLabel != null) &&
        !(resourceType != null ? !resourceType.equals(that.resourceType) : that.resourceType != null) &&
        !(sortOrder != null ? !sortOrder.equals(that.sortOrder) : that.sortOrder != null) &&
        !(authorizations != null ? !authorizations.equals(that.authorizations) : that.authorizations != null);
  }
Sets the explicit sort order value for this PermissionEntity

@param sortOrder a sorting order value
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/PermissionEntity.java