JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.9.1/underscore-min.js" integrity="sha256-G7A4JrJjJlFqP0yamznwPjAApIKPkadeHfyIwiaa9e0=" crossorigin="anonymous"></script>
JavaScript
var urlList = [{
"URL": "https://example.com/cat1/aa/bb/cc",
"Last crawled": "Jun 23, 2019"
},
{
"URL": "https://example.com/cat2/aa",
"Last crawled": "Jun 23, 2019"
},
{
"URL": "https://example.com/cat1/aa/bb/cc/dd/ee",
"Last crawled": "Jun 23, 2019"
},
{
"URL": "https://example.com/cat3/aa/bb/cc/",
"Last crawled": "Jun 23, 2019"
},
{
"URL": "https://example.com/cat2/aa/bb",
"Last crawled": "Jun 23, 2019"
},
{
"URL": "https://example.com/cat1/aa/bb",
"Last crawled": "Jun 23, 2019"
}
]
var s = _.map(urlList, function(i) {
return i.URL.split("/")[3];
});
var sorted = _.sortBy(s)
var projection = _.map(sorted, function(p) {
console.log("https://example.com/" + p);
});