From: Alan Knowles Date: Tue, 6 Jul 2010 13:52:30 +0000 (+0800) Subject: JSDOC/BuildDocs.js X-Git-Url: http://git.roojs.org/?p=gnome.introspection-doc-generator;a=commitdiff_plain;h=5d17f323c0f7c5204dc218917b4261415dcc60d5 JSDOC/BuildDocs.js --- diff --git a/JSDOC/BuildDocs.js b/JSDOC/BuildDocs.js index ae3ecd1..314c4cc 100644 --- a/JSDOC/BuildDocs.js +++ b/JSDOC/BuildDocs.js @@ -218,6 +218,25 @@ BuildDocs = { function isaClass($) { return ($.is("CONSTRUCTOR") || $.isNamespace); } + function makeSortby(attribute) { + return function(a, b) { + if (a[attribute] != undefined && b[attribute] != undefined) { + a = a[attribute]; //.toLowerCase(); + b = b[attribute];//.toLowerCase(); + if (a < b) return -1; + if (a > b) return 1; + return 0; + } + } + } + + + + + + + + var symbols = this.symbolSet.toArray();