joewalker/gcli — comment on commit 61c3f58bb70052f52ed59ebd6b857fc8bcbb9574
File: lib/gcli/types/javascript.js line 222
By campd:

Could also do:

matches.forEach(function(m) { m.sort = ((m1.ownProperty ? 1 : 0) << 1) + (isVendorPrefixed(m) ? 1 :0) })
matches.sort(function(m1, m2) {
if (m1.sort !== m2.sort) {
return m2.sort - m1.sort;
}
return m1.prop.localeCompare(m2.prop);
});

But again, I'm not sure it's an improvement. Mostly just commenting to show that I'm paying attention and that nested trinary operators scare my poor little brain a bit.