updated sorting examples