How can we order the Notes by date in desc in view.home? Is there a better way to sort Note in current_user.Note object and return user=current_user back to home page instead.
Currently I am doing like below to return Notes object back to home age, and from home page loop Note object to get the data in desc order:-
How can we order the Notes by date in desc in view.home? Is there a better way to sort Note in
current_user.Note
object and returnuser=current_user
back to home page instead.Currently I am doing like below to return Notes object back to home age, and from home page loop Note object to get the data in desc order:-