[feature] filter and sort in memory