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.
Id #12965 | Release:
| Updated: Apr 26 at 6:19 PM by henjon | Created: Apr 24 at 2:48 PM by marco2250
Id #7008 | Release:
| Updated: Jul 26, 2011 at 6:28 AM by niaher | Created: Aug 26, 2010 at 7:23 PM by henjon
Complete and check in code for dynamic filtering.
Id #6699 | Release:
| Updated: Feb 12, 2013 at 10:30 PM by henjon | Created: Jul 23, 2010 at 6:52 PM by henjon