title: Linting error: Move this array "sort" operation to a separate statement
body: <p>Could you please help to fix linting error with below javascript function.</p>
  
  <p>Error: Move this array "sort" operation to a separate statement.</p>
  
  <pre><code>  item.EmployeeDetails = item.EmployeeDetails
                              .sort((a: IEmployeeDetails, b: IEmployeeDetails) =&gt; {
          if (a.employeeType &lt; b.employeeType) {
              return 1;
          }
          if (a.employeeType &gt; b.employeeType) {
              return -1;
          }
          return 0;
      });
  </code></pre>