infinispan/infinispan — pull request #1505 by galderz (2012-12-04 15:16:08+00:00)
Title: ISPN-2352 Make a safe, deep copy of the Sort when iterating

Not sure if this is the right way to solve it. It should be reviewed by Sanne.

This avoids sort fields being reversed when multiple iterators created from a single cache query, by making deep safe copies when the iterator is created.