grouperArray.sort(function (a, b) { return a.gsize - b.gsize || a.glow - b.glow; });
более короткая версия