diff --git a/index.js b/index.js index 8099576..e425a8a 100644 --- a/index.js +++ b/index.js @@ -13,8 +13,8 @@ const sortby = (properties) => (a, b) => { const collator = new Intl.Collator('en', { numeric: true, sensitivity: 'base' }) const compare = collator.compare(a[property], b[property]) - if (compare > 0) return -order if (compare < 0) return order + if (compare > 0) return -order }