Fix for sort on boolean type in elastic search