clone filtering and sorting