This line has a sideeffect that filters order is different after a call to getFilters(). Not sure this is intended, so I would propose to copy the filters before sorting and merging