Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: pkg/dartdoc/lib/src/dartdoc/utils.dart

Issue 11051004: Dartdoc method sorting says it's case insensitive, but isn't (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dartdoc/lib/src/dartdoc/utils.dart
===================================================================
--- pkg/dartdoc/lib/src/dartdoc/utils.dart (revision 13132)
+++ pkg/dartdoc/lib/src/dartdoc/utils.dart (working copy)
@@ -50,8 +50,8 @@
List<Mirror> orderByName(Collection<Mirror> list) {
final elements = new List<Mirror>.from(list);
elements.sort((a,b) {
- String aName = a.simpleName;
- String bName = b.simpleName;
+ String aName = a.simpleName.toLowerCase();
+ String bName = b.simpleName.toLowerCase();
bool doma = aName.startsWith(r"$dom");
bool domb = bName.startsWith(r"$dom");
return doma == domb ? aName.compareTo(bName) : doma ? 1 : -1;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698