Find curve by its planar deviation value

I have a bunch of nonplanar polylines
crv1
crv2
crv3
crv4

i want to find their planar deviation, put the curve and the deviation together on a list, example:
crv1 = 0.80
crv2 = 0.25
crv3 = 0.55
crv4 = 0.15

sort the list by their deviation value
crv4 =0.15
crv2 = 0.25
crv3 = 0.55
crv4 = 0.80

and finally by using a slider and looking at a panel, “choose”/ highlight in the model space a specific curve.

I have been playing with these components but I really have no idea of what I am doing and I cant make it work, could you help me please???