def componentSort(a, b): return cmpComponentType(a.get('type'), b.get('type'))
def componentSort(a, b): return cmpComponentType(a.componentType, b.componentType)
def componentSort(a, b): return cmpComponentType(a.get('type'), b.get('type'))
def componentSort(a, b): return cmpComponentType(a.componentType, b.componentType)