 		where
 			a.BoardID=@BoardID
 		order by
-			a.MinPosts,
+			a.SortOrder,
 			a.Name
 	else
 		select

	  else
	  set rowcount	1 

      select @firstselectuserid = a.UserID ,  
	         @firstselectlastvisit = a.LastVisit, 
			 @firstselectjoined = a.Joined, 
			 @firstselectrankid = a.RankID, 

  
   declare @user_totalrowsnumber int 
   declare @firstselectrownum int 
   declare @firstselectuserid nvarchar(255)
   declare @firstselectrankid int
   declare @firstselectlastvisit datetime
   declare @firstselectjoined datetime
