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