Working flag views sort handler.