Fixes #331 per issue at http://n2cms.codeplex.com/discussions/464970
Merge branch 'master' of https://github.com/n2cms/n2cms
Fixed definition sorting in the event of broken IComparable.