Problem with Sort with value is null

Oct 4, 2010 at 1:20 PM

The Result of the Sort is on first start false, on the second start is ok.

 

this.ListDataTest.Add(new DataTest("Max", "Mustermann", "Berlin"));
this.ListDataTest.Add(new DataTest("Fritz", "Frosch", "Lindau"));
this.ListDataTest.Add(new DataTest("Karl", null, "Wien"));
this.ListDataTest.Add(new DataTest("Bart", "Simpson", "Television"));


Regards Tino

Oct 26, 2010 at 6:48 AM

In my test the results are ok. the lastname with the null value is always at the bottom (in both asc and desc). I think it's ok, because it's null.