src/main/java/org/polyjdbc/core/query/SelectQuery.java
public SelectQuery orderBy(String name, Order order) {
        if (orderBy == null) {
            orderBy = new StringBuilder(ORDER_BY_LENGTH);
            orderBy.append(" ORDER BY ");
        }
        orderBy.append(name).append(" ").append(order.getStringCode()).append(", ");

        return this;
    }
public SelectQuery orderBy(String name, Order order) {
        if (orderBy == null) {
            orderBy = new StringBuilder(ORDER_BY_LENGTH);
            orderBy.append(" ORDER BY ");
        }
        orderBy.append(name).append(" ").append(order.getStringCode()).append(", ");

        return this;
    }
public SelectQuery orderBy ( String name , Order order ) { if ( orderBy == null ) { orderBy = new StringBuilder ( ORDER_BY_LENGTH ) ; orderBy . append ( " ORDER BY " ) ; } orderBy . append ( name ) . append ( " " ) . append ( order . getStringCode ( ) ) . append ( ", " ) ; return this ; }
Create <b>ORDER BY</b> clause for given column, can be used multiple
times with multiple columns.
Create <b > ORDER BY< / b > clause for given column can be used multiple times with multiple columns .