polish filtering and sorting function display