added sort nested field support