Actually when you consider these two parameters, then pretty much everyone lose to Sachin in the discussion of greatest cricketer of all-time barring Bradman and Sobers.
For example, Imran Khan had maintained top level performance in his career like Sachin Tendulkar made but he loses to Sachin because he was not able to maintain it for a longer period of time like Tendulkar did for India. This is where SRT not only outperforms Anderson but also outperforms Imran Khan and takes the greatest Asian cricketer of all-time recognition. Actually Imran loses to Anderson in the second category as well (both are bowlers also) because Imran in his own era had lesser wickets to all three of his contemporaries - Kapil, Hadlee and Botham.
Longevity takes on less importance when you get in to the realms of around a 17 year career. Anything more is neither here nor there.
The fact someone played 24 years instead of 17 years really makes no difference apart from a pat on the back. So pat on the back little Sachin, well done.