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:
parent
f8b89bd93b
commit
21ac5822a0
@ -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(", ") + ")"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user