fix note type sorting