code: def _get_sorted_conditions_list(self, raw_set):
          
          keys_list = raw_set.keys()
          # cond_dicts_l is the final list which will contain the the
          # dictionaries with the conditions.
          # The dictionaries will be sorted by the index obtained in the
          # template.
          cond_dicts_l = []
          # c_count is a counter which is incremented every time a new cond is
          # added to the list, so we can give it a index.
          c_count = 0
          # cond_list will contain the keys starting with 'analysisservice-'
          # but sorted by their index
          cond_list = self._get_sorted_cond_keys(keys_list)
          for key in cond_list:
              range0_key = 'range0-'+str(c_count)
              range0 = raw_set.get(range0_key, '')
              range1_key = 'range1-'+str(c_count)
              range1 = raw_set.get(range1_key, '')
              discreteresult_key = 'discreteresult-'+str(c_count)
              discreteresult = raw_set.get(discreteresult_key, '')
              and_or_key = 'and_or-'+str(c_count)
              and_or = raw_set.get(and_or_key, '')
              # Building the conditions dict
              cond_dict = {
                  'analysisservice': raw_set[key],
                  'cond_row_idx': c_count,
                  'range0': range0,
                  'range1': range1,
                  'discreteresult': discreteresult,
                  'and_or': and_or,
                  }
              # Saves the conditions as a new dict inside the actions list
              cond_dicts_l.append(cond_dict)
              c_count += 1
          return cond_dicts_l
docs: This returns a list of dictionaries with the conditions got in the
          raw_set.
          :raw_set: is the dict representing a set of rules and conditions.