Fixed sorting on nested fields