Streamlit aggrid retain selected rows

Is there a way in streamlit aggrid that retains the order on how the checkbox are selected from the streamlit aggrid table?