JSFiddle - React, Tailwind, and code Playground

HTML

<div id="selectors"></div>

JavaScript

var object = ["06/20/2019", "06/20/2017", "06/20/2018"]

object = object.sort(function (a, b) { return a >= b ? 1 : -1; });

$.each(object,function(index, obj){   
    alert(obj);    
});