code: function(a) {
                                  var val = jsonQ.pathValue(a, logicPath);
  
                                  //to convert val to be compared
                                  val = sortFunc.baseConv(type, val, settings);
                                  return settings.logic(val);
                              }
docs: logic path is path which we add in on condition to find the element value according to which we are sorting