sql server - Natural Sort in NHibernate -


I have found a hibernate query that gives a list of objects and I want to order by a title to make it a user Is the area kept and some of our clients like their headings are prefix with numbers, this is not something I can control. The data is something like this:

  - 1 first thing - 2 second thing - fifth thing - 10 tenth point - 20 twin thing - no numbers have any work  

A traditional

  .AddOrder (order .asc ("name"))  

This generates a literal type:

  - 1 first thing - 10 tenth thing - 2 second thing - 20 twenty thing - 5 fifth thing - nothing with numbers  

This is right because it's a Nvarchar is the field but do I have anyhow Can I even get numbers to sort?

There are many types of people who are prefixed to all areas, but like this, do any of these work through NHibernate? / P>

This application is run alternately on Oracle and MSSQL.

Cheers,

Matt

You create an implementation You can consider who allows you to specify the collation on the column to get the results you want.

but with a suitable match (I do not believe Latin1_General_BIN

code> that is what you especially )


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -