Javascript sort array of objects in reverse chronological order javascript , arrays , sorting As PM 77-1 suggests, consider using the built–in Array.prototype.sort with Date objects.