1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 04:10:29 +03:00

Sort categories alphabetically.

This commit is contained in:
Rob Rix 2015-10-07 13:20:41 -04:00
parent f8b89bd93b
commit 21ac5822a0

View File

@ -21,7 +21,7 @@ public enum Info: AlgebraicHashable, CustomDebugStringConvertible {
case let .Literal(s, c) where c.isEmpty:
return s
case let .Literal(s, c):
return s + " (" + c.map { String(reflecting: $0) }.joinWithSeparator(", ") + ")"
return s + " (" + c.sort().map { String(reflecting: $0) }.joinWithSeparator(", ") + ")"
}
}
}