fixes tp #714 (quotes improperly imported)
fixes bug which was causing -1 to always be return as the index of the row (fixes tp #701)
Merge pull request #163 from kobotoolbox/tp701

Tp 701 - question sorting