Skip to content

Commit

Permalink
docs: fixes #260 - give method sorting preferential treatment to ctors
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Oct 15, 2014
1 parent daa5a45 commit c992198
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/components/docs/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,7 @@ angular
})[0]
};
})
.sort(function(a, b) {
return a.constructor ? -1: a.name > b.name;
});
.sort(compareMethods);
};
}

Expand Down Expand Up @@ -175,9 +173,7 @@ angular
acc = acc.concat(mixInMethods);
return acc;
}, data)
.sort(function(a, b) {
return a.name > b.name;
});
.sort(compareMethods);
};
}
}
Expand Down Expand Up @@ -213,6 +209,10 @@ angular
.then(setSingleMethod($location.search().method));
}

function compareMethods(a, b) {
return a.constructor ? -1: a.name > b.name;
}

function getLinks($route, getLinks) {
return getLinks($route.current.params.version);
}
Expand Down

0 comments on commit c992198

Please sign in to comment.