code: def get_results_priority(args):
      
      redirect_mode = args.bang or args.search or args.lucky
      if redirect_mode:
          results_priority = ['redirect', 'result', 'abstract']
      else:
          results_priority = ['answer',  'abstract', 'result']
  
      insert_pos = 0 if args.define else len(results_priority)
      results_priority.insert(insert_pos, 'definition')
      return results_priority
docs: Return a result priority list based on user input