Updated code for sort by and advanced triangle counting.  Still need to fix rep issue for sort by.