code: def get_fncsortnt(self):
          
          if 'dcnt' in self.prt_attr['flds']:
              if 'D1' in self.prt_attr['flds']:
                  return lambda ntgo: [ntgo.NS, ntgo.depth, -1*ntgo.dcnt, ntgo.D1, ntgo.alt]
              else:
                  return lambda ntgo: [ntgo.NS, ntgo.depth, -1*ntgo.dcnt, ntgo.alt]
          else:
              return lambda ntgo: [ntgo.NS, -1*ntgo.depth, ntgo.alt]
docs: Return sorted list of tuples.