     
     /// Returns a collation.
     ///
-    ///     let collation = DatabaseCollation("succ") { (string1, string2) in
-    ///         return (string1 as NSString).localizedCaseInsensitiveCompare(string2)
+    ///     let collation = DatabaseCollation("localized_standard") { (string1, string2) in
+    ///         return (string1 as NSString).localizedStandardCompare(string2)
     ///     }
     ///     db.addCollation(collation)
+    ///     try db.execute("CREATE TABLE files (name TEXT COLLATE LOCALIZED_STANDARD")
     ///
     /// - parameter name: The function name.
     /// - parameter function: A function that compares two strings.

    
    private var collations = Set<DatabaseCollation>()
    
    /// TODO
    public func addCollation(collation: DatabaseCollation) {
        collations.remove(collation)
        collations.insert(collation)

// =========================================================================
// MARK: - Collations

/// A Collation.
public class DatabaseCollation : Hashable {
    let name: String
    let function: (String, String) -> NSComparisonResult
