Nome Idade ID
João 5
Lucas 5
João 2
Lucas 1
I would like to use a cursor to sort by names and by age and that the ID field would be populated according to the sequence, eg
Nome Idade ID
João 2 1
João 5 2
Lucas 1 1
Lucas 5 2
Is it possible?