Fix sorting notes by tags