Reimplement sorting note sections