orderBy method

ConjunctionBase orderBy(
  1. dynamic argFields
)

argFields might be String or List

Implementation

ConjunctionBase orderBy(dynamic argFields) {
  if (argFields != null) {
    if (argFields is String) {
      orderByList.add(argFields);
    } else {
      for (String? s in argFields as List<String?>) {
        if (s!.isNotEmpty) {
          orderByList.add(' $s ');
        }
      }
    }
  }
  return this;
}