src/main/java/com/greghaskins/spectrum/internal/hooks/Hooks.java
/**
   * Return a hooks object where the hooks from this have been sorted into execution order.
   * @return new hooks sorted into the order for execution
   */
Return a hooks object where the hooks from this have been sorted into execution order.
@return new hooks sorted into the order for execution
Return a hooks object where the hooks from this have been sorted into execution order . @return new hooks sorted into the order for execution
public Hooks sorted() {
    Hooks result = new Hooks();
    result.addAll(this);
    result.sort(HookContext::compareTo);
    return result;
  }
public Hooks sorted ( ) { Hooks result = new Hooks ( ) ; result . addAll ( this ) ; result . sort ( HookContext :: compareTo ) ; return result ; }
Return a hooks object where the hooks from this have been sorted into execution order.
Return a hooks object where the hooks from this have been sorted into execution order .