### Question:
MetaModelHelper { public static DataSet getOrdered(DataSet dataSet, List<OrderByItem> orderByItems) { return getOrdered(dataSet, orderByItems.toArray(new OrderByItem[orderByItems.size()])); } private  MetaModelHelper(); static Table[] getTables(Collection<Table> tableList, Iterable<Column> columnList); static boolean isInformationSchema(Schema schema); static boolean isInformationSchema(String name); static Table[] getTables(Iterable<Column> columns); static Column[] getTableColumns(Table table, Iterable<Column> columns); static Column[] getTableColumns(Table table, Column[] columns); static DataSet getCarthesianProduct(DataSet... fromDataSets); static DataSet getCarthesianProduct(DataSet[] fromDataSets, FilterItem... filterItems); static DataSet getCarthesianProduct(DataSet[] fromDataSets, Iterable<FilterItem> whereItems); static InMemoryDataSet nestedLoopJoin(DataSet innerLoopDs, DataSet outerLoopDs,
            Iterable<FilterItem> filtersIterable); static DataSet getFiltered(DataSet dataSet, Iterable<FilterItem> filterItems); static DataSet getFiltered(DataSet dataSet, FilterItem... filterItems); static DataSet getFiltered(DataSet dataSet, Collection<FilterItem> filterItems); static DataSet getSelection(final List<SelectItem> selectItems, final DataSet dataSet); static DataSet getSelection(SelectItem[] selectItems, DataSet dataSet); static DataSet getGrouped(List<SelectItem> selectItems, DataSet dataSet,
            Collection<GroupByItem> groupByItems); static DataSet getAggregated(List<SelectItem> workSelectItems, DataSet dataSet); static List<SelectItem> getAggregateFunctionSelectItems(Iterable<SelectItem> selectItems); static List<SelectItem> getScalarFunctionSelectItems(Iterable<SelectItem> selectItems); static List<SelectItem> getUnmaterializedScalarFunctionSelectItems(Iterable<SelectItem> selectItems,
            DataSet dataSetWithMaterializedSelectItems); static DataSet getOrdered(DataSet dataSet, List<OrderByItem> orderByItems); static DataSet getOrdered(DataSet dataSet, final OrderByItem... orderByItems); static List<Row> readDataSetFull(DataSet dataSet); static FromItem[] getTableFromItems(Query q); static List<FromItem> getTableFromItems(FromItem item); static Row executeSingleRowQuery(DataContext dataContext, Query query); static DataSet getLeftJoin(DataSet ds1, DataSet ds2, FilterItem[] onConditions); static DataSet getRightJoin(DataSet ds1, DataSet ds2, FilterItem[] onConditions); static SelectItem[] createSelectItems(Column... columns); static DataSet getDistinct(DataSet dataSet); static Table[] getTables(Column[] columns); static Column[] getColumnsByType(Column[] columns, final ColumnType columnType); static Column[] getColumnsBySuperType(Column[] columns, final SuperColumnType superColumnType); static Query parseQuery(DataContext dc, String queryString); static DataSet getPaged(DataSet dataSet, int firstRow, int maxRows); static List<SelectItem> getEvaluatedSelectItems(final List<FilterItem> items); static SelectItem getSelectItemByAlias(Query query, String alias); static boolean containsNonSelectScalaFunctions(Query query); static Table resolveTable(FromItem fromItem); static Table resolveUnderlyingTable(Table table); static Schema resolveUnderlyingSchema(Schema schema);  }### Answer:
@Test public void testGetOrdered() throws Exception { DataSet dataSet = createDataSet3(); List<OrderByItem> orderByItems = new ArrayList<OrderByItem>(); orderByItems.add(new OrderByItem(dataSet.getSelectItems().get(0))); dataSet = MetaModelHelper.getOrdered(dataSet, orderByItems); assertTrue(dataSet.next()); assertEquals("Row[values=[w00p, true]]", dataSet.getRow().toString()); assertTrue(dataSet.next()); assertEquals("Row[values=[yippie, false]]", dataSet.getRow().toString()); assertFalse(dataSet.next()); }