How about this:

&lt;xsl:sort data-type="number" order="ascending" select="*[local-name() = $sortby]" /&gt;


XSLT Sort with variable select
At first it wrote this exception: 


  "SQL Server Compact is not intended for ASP.NET development."


and then I added: 

AppDomain.CurrentDomain.SetData("SQLServerCompactEditionUnderWebHosting", true);


to the Global.aspx and it fixed it.

But now when I try to open the SqlCeConnection it gives me this exception:


  Incompatible Database Version. If this was a compatible file, run
  repair. For other cases refer to documentation. [ Db version =
  4000000,Requested version = 3505053,File name =
  \?\C:\Users\gal\Documents\Visual Studio
  2012\WebSites\Project_Level_4\DB\PhoneBookWeb.sdf ]


Can anyone please help ? 
