xsl:sort is broken right now. I've got it mostly working, I just need to optimize the datatype=number case. I'll attach a fix when that's done.
ugh, i've had this working for quite some time in my tree now, see bug 65858
*** This bug has been marked as a duplicate of 65858 ***