docstr: This function uses the sum of ranks (based on frequency) of each word in each
  sentence and sorts them according to it.
docstr_tok: ["This","function","uses","the","sum","of","ranks","(","based","on","frequency",")","of","each","word","in","each","sentence","and","sorts","them","according","to","it","."]
code: def sortlistwithdict(self, listtosort, hashes):
      """
      This function uses the sum of ranks (based on frequency) of each word in each
      sentence and sorts them according to it.
      """
      return sorted(listtosort, key=lambda x: hashes[x])
  
file_path: Ciphey/ciphey/basemods/Crackers/soundex.py
imports: import re
  from typing import Dict, List, Optional
  import logging
  from rich.logging import RichHandler
  from ciphey.iface import Config, Cracker, CrackInfo, CrackResult, ParamSpec, Translation, registry
label_desc: Use image node_id 4 for calling the Soundex obj's underlying member method code with example usage: obj.sortlistwithdict(listtosort, hashes) and returns: sorted