Preamble
The following code is included in the subsequent examples, but hidden so as not to pollute them.
const {ChainSorter} = require("chainsorter");
const names = [{
"first": "Carl",
"last": "Archer",
"id": 0
},
{
"first": "Burt",
"last": "Birch",
"id": 1
},
{
"first": "Carl",
"last": "Cross",
"id": 2
},
{
"first": "Albert",
"last": "Archer",
"id": 3
}];