mirror of
https://github.com/nodejs/node.git
synced 2025-05-19 06:22:56 +00:00

PR-URL: https://github.com/nodejs/io.js/pull/2286 Reviewed-By: Roman Reiss <me@silverwind.io>
10 lines
211 B
JavaScript
10 lines
211 B
JavaScript
// Used internally to sort array of lists by length
|
|
|
|
'use strict';
|
|
|
|
var toPosInt = require('../../number/to-pos-integer');
|
|
|
|
module.exports = function (a, b) {
|
|
return toPosInt(a.length) - toPosInt(b.length);
|
|
};
|