PLD: filter and sort dataset for table