trying to sort pending notifications