Hello in the above query i have the problem that if i order by @searchword then i get the rows correctly but if i add date then @searchword is ignored and the ordering is done by date first.Any help?Thanks.declare @startRowIndex int--maximurows = to page sizedeclare @maximumRows intset @startRowIndex=1set @maximumRows =5DECLARE @SearchWord nvarchar(50);SET @SearchWord ='starting words';select rownum,id,headertext,innertext,url,photo,datecFrom(select id,headertext,innertext,url,photo,datec, ROW_NUMBER() OVER(ORDER BY @SearchWord asc,datec desc) as rownumFrom news n where FREETEXT(*, @SearchWord) ) as newsinfoWHERE RowNum BETWEEN @startRowIndex AND (@startRowIndex + @maximumRows) - 1