I want to sort the following array of timestamps using lodash so the latest time stamp is first [3].
Code:
let timestamps = [\"2017-
orderBy allows you to specify the sort orders while sortBy does not.
const sorted = orderBy(timestamps, ['desc']);