sort-by-value

Re-order the objects in an array so that values of a specified property match the order of a provided array of values.

Browse on unpkg