#NEWLINE# def reorder_rows( rec , new_order ) : #NEWLINE# #INDENT# '\n    Reorder or delete rows in a records array.\n\n    This function can also be used to delete multiple rows from a records\n    array, only the rows in the new_order list are retained in the new records\n    array.\n\n    Parameters\n    ----------\n    rec : recarray\n        Records array.\n    new_order : list\n        List of row indices and order in new records array.  Only the rows in\n        this list are retained in the new records array.  Therefore this\n        function can also be used to delete multiple rows from a records\n        array.\n\n    Returns\n    -------\n    new_rec : recarray\n        New records array with rows reordered.\n\n    ' #NEWLINE# return np . take ( rec , new_order )