这段代码我不太明白
<!-- #include file="conn.asp" -->
<%
dim ii
ii=0
sorta(19)
sub sorta(selec)
sql="Select * From ClassTree where followid="&selec&" and hide=0 order by SortNum"
Set Rs1=Conn.Execute(sql)
do while not rs1.eof
if selec=0 then
%>
<%=rs1("ClassName")%><br />
<%
else
%>
<%=string(ii*2," ")%><%=rs1("ClassName")%><br />
<%
end if
ii=ii+1
sorta rs1("id")
ii=ii-1
rs1.movenext
loop
Set Rs1 = Nothing
end sub
%>
“sub sorta(selec)”在这起到什么作用?知道数据库中有多少条记录?