A simple utility (node module) that can be used to order a list of objects that have both name and rank, as well as finding the average rank.
See tests for examples like the one below:
const rankingTool = require('../src/object-ranking-tool');
const rankObjects = [
{
name: 'The Battle of The Bastards',