Retrieve fields from mapping when index changes. Use sort[] response to sort table fields