title: How to sort data order view of a dropdown field in Netsuite using SuiteScript JavaScript
body: <p>I have a dropdown box that displays supplier data that is sourced from a custom table in Netsuite. The goal here is to reorder the way the supplier data is viewed.</p>
  <p>For example, currently the supplier data is displayed: SupplierNumber SupplierName (1230 - APEX). <a href="https://i.stack.imgur.com/h4pc7.png" rel="nofollow noreferrer">UI Screenshot</a></p>
  <p>The desired view for the supplier dropdown is the reverse of that: SupplierName SupplierNumber (APEX - 1230).</p>
  <p>The variable highlighted is the internal ID of the table sourcing the Supplier dropdown field <a href="https://i.stack.imgur.com/okIwV.png" rel="nofollow noreferrer">supplierField variable</a></p>
  <p>I am new to Netsuite and need some guidance on how to approach this problem. Any guidance will be greatly appreciated.</p>
  <p>I have tried using different methods such as split(' ').reverse().join(' ') on that table object but it did not work.</p>