filter before sorting members