add sort demo using predicates
modify print