added Sort Method