title: FetchRequest Sorted
body: <p>Ooookay...
  Maybe it's just too late... but I can not get this thing to work.
  Actually the fetch ist working... but it's not sorted in any way !?
  "zaehler" is an Int32 attribute- should work perfect !?</p>
  
  <p>What am I doing wrong ?</p>
  
  <pre><code>static func getAllMaterialSorted() -&gt; [MaterialMO] {
  
      var result = [MaterialMO]()
      let moc = AppDelegate.managedObjectContext
      let fetchRequest: NSFetchRequest&lt;MaterialMO&gt; = MaterialMO.fetchRequest()
  
      let zaehler = NSSortDescriptor(key: "zaehler", ascending: false)
      let name = NSSortDescriptor(key: "name", ascending: true)
  
      fetchRequest.sortDescriptors = [zaehler]
  
      do {
          result = try moc!.fetch(MaterialMO.fetchRequest()) as! [MaterialMO]
      } catch {
          print ("Cannot fetch employees.Error \(error)")
          return result
      }
      return result
  }
  </code></pre>