fixing fix for list order by code from #ec3d5a1da14eb25ae207711e2ff530616feca853