Replaced NSSet in favor to NSArray in the construction of queries, NSSet not always have the same order .
Merge pull request #1 from scinfu/master

Replaced NSSet in favor to NSArray in the construction of queries, NSSet...