Only use joinTo value for sorting if it's an array

Otherwise it interferes with default vendor ordering when joinTo is
something like `'app.js': /^(vendor|bower_components|app)/`