fixed bug in sortedIndex