Sorting notes

Sorting notes to maintain desired order