return includes.map(function (include) {
    return include.split('.');
  }).sort(function (a, b) {
    return b.length - a.length;
  }).reduce(function (result, parts) {