Select the top n elements from a list using several common orderings and custom key extraction procedures.