sorting notes