me=k, order=node.order or 100})
	end

	table.sort(index, function(a, b) return a.order < b.order end)

	for i, k in ipairs(index) do
		node = cattree.nodes[k.name]
		if not node.hidden and node.title and node.target then
			local href = controller.."/"..category.."/"..k.name
			href = (k.query) and href .. luci.http.build_querystring(k.query) or href %>
			<div<% if node._menu_selected then %> class="preactive"<%end%>><a href="<%=pcdata(href)%>"><%=pcdata(striptags(translate(node.title)))%></a>
				<%submen