padolsey/relevancy.js

Sorting array of objects

froston opened this issue · 1 comments

Would it be possible to sort array of objects?

Kind of ..

const array = [{id: 1, name: "Test"}, {id: 2, test: "Test 2"}]; 
// sort by array key name
relevancy.sort(array, subject, "name");

Thanks for your reply and this library!

is it related to #1 ?