def SPAlt( ang ): 
    """
    Returns list ang cycled such that the ang[2] is the smallest angle
    """
    indexMin = 0    
    itemMin = 360
    for i, item in enumerate( ang ):
        if (item < itemMin):
            indexMin = i
            itemMin = item
    return ( ang[(indexMin-2)%4:] + ang[:(indexMin-2)%4] )