<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def hashify_targets(targets: list, build_context) -> list: """Return sorted hashes of `targets`."""

    return sorted(build_context.targets[target_name].hash(build_context)
                  for target_name in listify(targets))