sort notes formatting