Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Nigel Smith
Added: Dec 13, 2017 1:00 AM
Modified: Feb 2, 2018 8:06 PM
Views: 16
Tags: no tags
  1. records.sort() { (lhs, rhs) -> Bool in
  2.                     return lhs.dateModified > rhs.dateModified
  3.                 }
  4.  
  5. collectionItems.sort() { $0.service.name < $1.service.name }