class OrderByImpl extends BaseFinishedSelectStatement implements OrderBy {

  @Override
  public void prependTo(@NotNull final RawSqlBuilder builder) {
    for (int i = mTerms.length - 1; i >= 0; i--) {
      builder.prepend(mTerms[i]);
      if (i > 0) {
        builder.prepend(',');
      }
    }

    builder.prepend("ORDER BY ");
  }

    OrderByImpl(@NotNull final String[] terms, @NotNull final SqlPart previous);

}