Fix #4619 SELECT LENGTH(`field`) FROM  does not sort