issue 5106
Merge pull request #1160 from andralex/5106

Fix Issue 5106 - makeIndex should return SortedRange