Dartdoc should sort constructors by constructorName, not by class name

Review URL: https://codereview.chromium.org//11013016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13139 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
alanknight@google.com
2012-10-02 21:01:46 +00:00
parent 9dd3e6229c
commit ab9a32f9cb
+2 -2
View File
@@ -984,8 +984,8 @@ class Dartdoc {
if (constructors.length > 0) {
writeln('<h3>Constructors</h3>');
constructors.sort((x, y) => x.simpleName.toUpperCase().compareTo(
y.simpleName.toUpperCase()));
constructors.sort((x, y) => x.constructorName.toUpperCase().compareTo(
y.constructorName.toUpperCase()));
for (final constructor in constructors) {
docMethod(type, constructor);