code: function(sizes) {
          "use strict";
  
          sizes = qq.extend([], sizes);
  
          return sizes.sort(function(a, b) {
              if (a.maxSize > b.maxSize) {
                  return 1;
              }
              if (a.maxSize < b.maxSize) {
                  return -1;
              }
              return 0;
          });
      }
docs: We want the smallest scaled file to be uploaded first