Updated sorting in localIndexFragment