Sorting numbers is easy with Ramda.
const sizes = ["18", "20", "16", "14"]
console.log("Sorted sizes", R.sort((a, b) => a - b, sizes))
//=> [ '14', '16', '18', '20' ]
Sorting an array of words with vanilla javascript is too.
const trees = ["cedar", "elm", "willow", "beech"]
console.log("Sorted trees", trees.sort())
How would you sort an array of words with Ramda.
If you had to.
const trees = ["cedar", "elm", "willow", "beech"]
console.log("Sorted trees", R.sort((a, b) => a - b, trees))
//=> ["cedar", "elm", "willow", "beech"]