updated nsa to reverse sort and skip deleted