column alias combined with ORDER BY returns wrong data