Fix Issue 5106 - makeIndex should return SortedRange 

http://d.puremagic.com/issues/show_bug.cgi?id=5106