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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user