list order by is breaking if order by is "unset"

This is fixing the issue in case of non-ajaxfied list.
Not sure if it will cover all cases.