added filter and sort doc