for note in Notes.query.order_by(Note.id).all():
for note in Notes.query.order_by(Note.id.asc()).all():for note in Notes.query.order_by(Note.id.desc()).all():