Updated application.js to sort all_notes
Fixed all_notes sort