Add shuffle filter

A solution for #1890.