code: def get_layer_modes(subcategory):
      
      layer_modes = definition(subcategory)['layer_modes']
      return sorted(layer_modes, key=lambda k: k['key'])
docs: Return all sorted layer modes from exposure or hazard.
  
      :param subcategory: Hazard or Exposure key.
      :type subcategory: str
  
      :returns: List of layer modes definition.
      :rtype: list