title: Sort array in swiftui by multiple conditions
body: <p>how it is possible to sort an array by multiple conditions.</p>
  <pre><code>struct UserInformationModel: Identifiable, Hashable {
      
      let id = UUID()
      var isVip: Bool
      let userIsMale: Bool
      let userName: String
      let age: Int
      let userCountry: String
      let countryIsoCode: String
      let uid: String
      
  }
  </code></pre>
  <p>And the view model contain the code:</p>
  <pre><code>class GetUserInformationViewModel: ObservableObject {
      
      @Published var allUsers = [UserInformationModel]()
  
   fun sortmyarray(){
     
    self.allUsers = self.allUsers.sorted(by: {$0.isVip &amp;&amp; !$1.isVip})
  
  }
  </code></pre>
  <p>how its possible to sort first the vip users, and then sort by age and then country?</p>