pass views and docs as separate args, sort params