Notetaking application with extensive support for grouping and ordering notes