sort keys are now included in missing indexes detection.
refactored data.js