fixed same value problem
fixed looping back problem after resultSet is done
added some tests and JavaDoc
QueryResultSet now returns a rawIterator which does not support remove
shortening the tests
Merge pull request #1902 from gurbuzali/sort-limit-fix/3.2-RC2

fixed same value problem