Get Rows With Top Values

Input collection: myTestScores14

NameScore
Jennifer90
Robert60
Jaime70
Sarah100
Lynn85
Mike75
Steven45


Output collection: mySolution14

NameScore
Sarah100
Jennifer90
Lynn85


Solution code:

//Create a collection
ClearCollect(myTestScores14,
{Name: "Jennifer", Score: 90},
{Name: "Robert", Score: 60},
{Name: "Jaime", Score: 70},
{Name: "Sarah", Score: 100},
{Name: "Lynn", Score: 85},
{Name: "Mike", Score: 75},
{Name: "Steven", Score: 45}
);

//Get the highest scores code
ClearCollect(
    mySolution14,
    FirstN(Sort(myTestScores14,Score,Descending),3)
);