title: change the file name dynamically in SELECT * INTO XLSX('cities.xlsx',{headers:true}) FROM ?
body: <p>I'm using this function to sort and export data to excel</p>
  
  <pre><code>window.exportData = function () {
       data.sort(function(a, b){
          return a.destino - b.destino;
          });
       alasql("SELECT * INTO XLSX('cities.xlsx',{headers:true}) FROM ? ",  [data]);
  </code></pre>
  
  <p>it works well. I need to change the name 'cities.xlsx' for a name like, for example,</p>
  
  <p>var filename = 'cities'+variable+'.xlsx';</p>
  
  <p>and obtain </p>
  
  <p>alasql("SELECT * INTO XLSX("filename",{headers:true}) FROM ? ",[data]);</p>
  
  <p>in order to avoid confusions with saved files in excel.</p>
  
  <p>Thank you in advance.</p>