fixed sorting for computed fields