sorting indicies before get_events for IndexedDataFile