https://origsvn.digium.com/svn/asterisk/branches/10
........
r329670 | seanbright | 2011-07-27 11:25:53 -0400 (Wed, 27 Jul 2011) | 2 lines
Sort the module list so that 'module show' is alphabetical.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@329671
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
res = start_resource(mod);
}
+ /* Now make sure that the list is sorted */
+ AST_LIST_LOCK(&module_list);
+ AST_LIST_REMOVE(&module_list, mod, entry);
+ AST_LIST_INSERT_SORTALPHA(&module_list, mod, entry, resource);
+ AST_LIST_UNLOCK(&module_list);
+
return res;
}