Two objects in a list with same id, I want the most recent one

0
I have a list of objects which have a ticketId, I want to act and change the most recent one. How should I proceed?  Thanks for the help!
asked
1 answers
2

hi,

you may retrive that object from database and sort decending by changed date and take head then perform action whatever you need. hope it may help.

answered