Antra interview question

Sorting a List/Array in a given attribute.