nodes: 0, module; 1, function_definition; 2, function_name:returnIndexList; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, expression_statement; 8, if_statement; 9, expression_statement; 10, for_statement; 11, return_statement; 12, identifier:limit; 13, False; 14, string:'''Return a list of integers that are list-index references to the
          original list of dictionaries."
  
          Example of use:
  
          >>> test = [
          ...    {"name": "Jim",   "age": 18, "income": 93000, "order": 2},
          ...    {"name": "Larry", "age": 18,                  "order": 3},
          ...    {"name": "Joe",   "age": 20, "income": 15000, "order": 1},
          ...    {"name": "Bill",  "age": 19, "income": 29000, "order": 4},
          ... ]
          >>> print PLOD(test).returnIndexList()
          [0, 1, 2, 3]
          >>> print PLOD(test).sort("name").returnIndexList()
          [3, 0, 2, 1]
          
          :param limit:
             A number limiting the quantity of entries to return. Defaults to
             False, which means that the full list is returned.
          :return:
             A list of integers representing the original indices.
          '''; 15, comparison_operator:limit==False; 16, block; 17, assignment; 18, identifier:i; 19, call; 20, block; 21, identifier:result; 22, identifier:limit; 23, False; 24, return_statement; 25, identifier:result; 26, list; 27, identifier:range; 28, argument_list; 29, if_statement; 30, attribute; 31, identifier:limit; 32, comparison_operator:len(self.table)>i; 33, block; 34, identifier:self; 35, identifier:index_track; 36, call; 37, identifier:i; 38, expression_statement; 39, identifier:len; 40, argument_list; 41, call; 42, attribute; 43, attribute; 44, argument_list; 45, identifier:self; 46, identifier:table; 47, identifier:result; 48, identifier:append; 49, subscript; 50, attribute; 51, identifier:i; 52, identifier:self; 53, identifier:index_track
code: def returnIndexList(self, limit=False):
          '''Return a list of integers that are list-index references to the
          original list of dictionaries."
  
          Example of use:
  
          >>> test = [
          ...    {"name": "Jim",   "age": 18, "income": 93000, "order": 2},
          ...    {"name": "Larry", "age": 18,                  "order": 3},
          ...    {"name": "Joe",   "age": 20, "income": 15000, "order": 1},
          ...    {"name": "Bill",  "age": 19, "income": 29000, "order": 4},
          ... ]
          >>> print PLOD(test).returnIndexList()
          [0, 1, 2, 3]
          >>> print PLOD(test).sort("name").returnIndexList()
          [3, 0, 2, 1]
          
          :param limit:
             A number limiting the quantity of entries to return. Defaults to
             False, which means that the full list is returned.
          :return:
             A list of integers representing the original indices.
          '''
          if limit==False:
              return self.index_track
          result = []
          for i in range(limit):
              if len(self.table)>i:
                  result.append(self.index_track[i])
          return result