added sort order and sort index