nb2nb_order function

A function to order the elements of the m_i-subrrounds