Added unit test for orderBy and fixed related issue.

https://github.com/electricessence/TypeScript.NET/issues/12