sort by trap