Sort within note

Is there a way to sort a specific heading within a note? Suppose all my H3 headings are dates, is there a way to sort them and retain the text beneath them? If I need to export to another app to do this, that is OK.