update filter and sort markup