spec/cordova/fixtures/projects/platformApi/platforms/windows/cordova/lib/ConfigChanges.js
function compareCapabilities(firstCap, secondCap) {
    var firstCapName = getCapabilityName(firstCap);
    var secondCapName = getCapabilityName(secondCap);

    if (firstCapName < secondCapName) {
        return -1;
    }

    if (firstCapName > secondCapName) {
        return 1;
    }

    return 0;
}
function compareCapabilities(firstCap, secondCap) {
    var firstCapName = getCapabilityName(firstCap);
    var secondCapName = getCapabilityName(secondCap);

    if (firstCapName < secondCapName) {
        return -1;
    }

    if (firstCapName > secondCapName) {
        return 1;
    }

    return 0;
}
Comparator function to pass to Array.sort
@param {Object} firstCap first capability
@param {Object} secondCap second capability
@return {Number} either -1, 0 or 1