You can get the MAX of date created and GROUP all ...
# suitescript
m
You can get the MAX of date created and GROUP all other results.