m_pc.getDataSet().getQuery().addOrder(Path.get(parts[0]), isAscending);
m_query.addOrder(Path.get(parts[0]), isAscending);
    public void addOrder(String order) {        if (m_cursor != null) {            throw new PersistenceException                ("Cannot order an active data query. " +                 "Data query must be rewound.");        }        String[] orders = StringUtils.split(order, ',');        for (int i = 0; i < orders.length; i++) {            String[] parts = StringUtils.split(orders[i].trim(), ' ');            boolean isAscending;            if (parts.length == 1) {                isAscending = true;            } else if (parts.length == 2) {                isAscending = parts[1].startsWith("asc");            } else {                throw new IllegalArgumentException                    ("bad order: " + order);            }            m_pc.getDataSet().getQuery().addOrder(Path.get(parts[0]),                                                  isAscending);        }    }