Fix a bug in duplicate detection
Fix a bug in duplicate detection

This is caused by AppEngine's inability to sort a query when the
inequality or IN operator is used. See also [0].

[0] http://code.google.com/p/googleappengine/issues/detail?id=1100

Patch by: Sverre Rabbelier and Lennard de Rijk

--HG--
extra : convert_revision : svn%3A32761e7d-7263-4528-b7be-7235b26367ec/trunk%402932

SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange,SRabbelier/Melange