$ 0 0 Sorting works as expected after applying the script ,this fails only when the field is required Thanks Bindu