code: function (arr) {
        for (var i = 1; i < arr.length; i++) {
          var tmp = arr[i],
            j = i;
          while (arr[j - 1] && parseInt(arr[j - 1].width, 10) > parseInt(tmp.width, 10)) {
            arr[j] = arr[j - 1];
            --j;
          }
          arr[j] = tmp;
        }
  
        return arr;
      }
docs: /* Sorts the array of image sizes based on width