title: SwiftUI sort list by job hierarchy
body: <p>I am trying to sort my array by job hierarchy.</p>
  <p>for example I have model:</p>
  <pre><code>struct Employee{
  
     let name: String
     let job: String
     let phone: String
     let mail: Sting
  }
  </code></pre>
  <p>And then I have employees</p>
  <pre><code>class EmployeeViewModel: ObservableObject{
      
      @Published var employees: [Employee] = [
          Employee(name: &quot;John&quot;, job: &quot;Manager&quot;, age: 32),
          Employee(name: &quot;Anna&quot;, job: &quot;CEO&quot;, age: 40),
          Employee(name: &quot;Julia&quot;, job: &quot;Junior Developer&quot;, age: 25),
          Employee(name: &quot;Kevin&quot;, job: &quot;Senior Developer&quot;, age: 29)
          
      ]  
  }
  
  </code></pre>
  <p>I would like to sort them to the list like this:</p>
  <pre><code>CEO Anna
  Manager John
  Kevin Senior Developer
  Julia Junior Developer
  </code></pre>
  <p>Is there any easy way?</p>