Explicitly sort notes and nested records by ID when displaying them.