var StringExt = exports.StringExt = { cmp: function(a, b) { if (a === b) return 0; if (a < b) return -1; return 1; // a > b } // unpack };