collect: addition of sorting filter
Signed-off-by: Javier Martin Montull <javier.martin.montull@cern.ch>