Source: site.view [edit]
Function name: popular
Arguments:
Description: Lists functions in order of most popular, according to number of calls.
Page type: webl
Render function:   popularRender
Module: global

Page source:

var result = [];
var functionlist = [];
every m in Wub_ReadableModules(false) do
   if (m != "site") then
      functionlist = functionlist + Wub_FunctionList(m)
   end
end;

var CallCount = fun(f)
   return Wub_MetadataVal(f, "call") 
end;

every f in Wub_FunctionSort(CallCount, functionlist, -1) do
   result = result + [ [. name = f, count = CallCount(f) .] ];   
end;

result;