BIS_fnc_sortBy Fix for undefined variable