Make sorting API easier.