Commit ee41b206 authored by Eugen Rochko's avatar Eugen Rochko

Update reducer.js

parent e7724ad6
...@@ -28,11 +28,11 @@ const initialState = { ...@@ -28,11 +28,11 @@ const initialState = {
}, },
}; };
const DUNBAR = 150; const DUNBAR = Math.log(300);
const sortByDunbarsNumber = instances => instances.sort((a, b) => { const sortByDunbarsNumber = instances => instances.sort((a, b) => {
const aa = Math.abs(DUNBAR - a.active_users); const aa = Math.abs(DUNBAR - Math.log(a.active_users));
const bb = Math.abs(DUNBAR - b.active_users); const bb = Math.abs(DUNBAR - Math.log(b.active_users));
return aa > bb ? 1 : (aa < bb ? -1 : 0); return aa > bb ? 1 : (aa < bb ? -1 : 0);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment