Passing null or empty string as sortExpression


It would be helpful if you let us pass null or empty string as sortExpression. In that case, just test it and exit the function.


henjon wrote Apr 26, 2014 at 5:19 PM

Although it would be useful to your particular need, it would in general break the normal convention that null (or empty) values not are accepted. If you really want to void adding a test for null or empty in the calling code you are allowed to add those checks to the ComparerExtensions class yourselves. That is the buity of open source code.