We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d4c57b commit d469dc7Copy full SHA for d469dc7
1 file changed
scripts/render-api-docs.lua
@@ -418,6 +418,13 @@ end
418
419
local function sort_function_entries(entries)
420
sort(entries, function(a, b)
421
+ local a_name = a.item and (a.item.shortname or a.item.name)
422
+ local b_name = b.item and (b.item.shortname or b.item.name)
423
+ local a_is_new = a_name == "new"
424
+ local b_is_new = b_name == "new"
425
+ if a_is_new ~= b_is_new then
426
+ return a_is_new
427
+ end
428
return (a.signature or "") < (b.signature or "")
429
end)
430
end
0 commit comments