public DataRowComparator(String sortFields) {
        String fields = sortFields.trim();
        if (fields.indexOf(",") > 0) { //暂未实现处理多个列名的情况
            sortName = "";
            isDesc = false;
        } else {
            if (fields.toUpperCase().endsWith(" DESC")) {
                sortName = fields.substring(0, fields.lastIndexOf(" ")).trim();
                isDesc = true;
            } else {
                isDesc = false;
                if (fields.toUpperCase().endsWith(" ASC")) {
                    sortName = fields.substring(0, fields.lastIndexOf(" ")).trim();
                } else {
                    sortName = fields;
                }
            }
        }
    }