Two objects in a list with same id, I want the most recent one
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!
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.